|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
shapefunctionset/vectorial.hh
Go to the documentation of this file.
99 static const FieldVector< K, dimD > &access ( const VectorialType &x, const ComponentType &i ) { return x[ i ]; }
100 static FieldVector< K, dimD > &access ( VectorialType &x, const ComponentType &i ) { return x[ i ]; }
223 : public BasicMakeVectorialExpression< FieldMatrix< K, 1, dimD >, FieldMatrix< K, dimR, dimD > >
225 typedef MakeVectorialExpression< FieldMatrix< K, 1, dimD >, FieldMatrix< K, dimR, dimD > > ThisType;
226 typedef BasicMakeVectorialExpression< FieldMatrix< K, 1, dimD >, FieldMatrix< K, dimR, dimD > > BaseType;
291 field_type determinant () const { return (dimR == 1 ? scalar().determinant() : field_type( 0 )); }
365 const MakeVectorialExpression< FieldMatrix< K, 1, GeometryJacobianInverseTransposed::cols >, FieldMatrix< K, ROWS, GeometryJacobianInverseTransposed::cols > > &a,
368 typedef MakeVectorialTraits< FieldMatrix< K, 1, GeometryJacobianInverseTransposed::cols >, FieldMatrix< K, ROWS, GeometryJacobianInverseTransposed::cols > > Traits;
376 const MakeVectorialExpression< ExplicitFieldVector< FieldMatrix< K, GeometryJacobianInverseTransposed::cols, GeometryJacobianInverseTransposed::cols >, 1 >, ExplicitFieldVector< FieldMatrix< K, GeometryJacobianInverseTransposed::cols, GeometryJacobianInverseTransposed::cols >, SIZE > > &a,
377 ExplicitFieldVector< FieldMatrix< K, GeometryJacobianInverseTransposed::rows, GeometryJacobianInverseTransposed::rows >, SIZE > &b )
381 typedef MakeVectorialTraits< FieldVector< FieldMatrix< K, dimLocal, dimLocal >, 1 >, FieldVector< FieldMatrix< K, dimLocal, dimLocal >, SIZE > > Traits;
382 typedef MakeVectorialTraits< FieldVector< FieldMatrix< K, dimGlobal, dimGlobal >, 1 >, FieldVector< FieldMatrix< K, dimGlobal, dimGlobal >, SIZE > > RgTraits;
395 FieldMatrixColumn< FieldMatrix< K, dimGlobal, dimGlobal > > bi( RgTraits::access( b, a.component() ), i );
423 return (a.component() == b.component() ? scalarProduct( a.scalar(), b.scalar() ) : field_type( 0 ));
435 struct ToNewRange< FunctionSpace< DomainField, RangeField, dimD, 1 >, FieldVector< RangeField, dimR > >
453 // if ScalarShapeFunctionSetType has a member variable codegenShapeFunctionSet then this is forwarded here
455 static constexpr bool codegenShapeFunctionSet = detail::IsCodegenShapeFunctionSet< ScalarShapeFunctionSetType >::value;
461 static const std::size_t dimRangeFactor = MakeVectorialTraits< typename ScalarFunctionSpaceType::RangeType, RangeVector >::factor;
482 const ScalarShapeFunctionSetType &scalarShapeFunctionSet () const { return scalarShapeFunctionSet_; }
540 scalarShapeFunctionSet().evaluateEach( x, VectorialFunctor< Functor, VectorialType >( functor ) );
550 scalarShapeFunctionSet().jacobianEach( x, VectorialFunctor< Functor, VectorialType >( functor ) );
560 scalarShapeFunctionSet().hessianEach( x, VectorialFunctor< Functor, VectorialType >( functor ) );
iterator end()
virtual void operator()()=0
typename Overloads::ScalarType< std::decay_t< V > >::type Scalar
bool operator==(const DiscreteFunctionInterface< ImplX > &x, const DiscreteFunctionInterface< ImplY > &y)
Definition common/discretefunction.hh:1053
bool operator!=(const DiscreteFunctionInterface< ImplX > &x, const DiscreteFunctionInterface< ImplY > &y)
Definition common/discretefunction.hh:1059
STL namespace.
void jacobianTransformation(const GeometryJacobianInverseTransposed &gjit, const FieldMatrix< K, ROWS, GeometryJacobianInverseTransposed::cols > &a, FieldMatrix< K, ROWS, GeometryJacobianInverseTransposed::rows > &b)
Definition transformation.hh:21
double scalarProduct(const double &a, const double &b)
Definition space/basisfunctionset/functor.hh:65
void axpy(const T &a, const T &x, T &y)
Definition space/basisfunctionset/functor.hh:38
void hessianTransformation(const GeometryJacobianInverseTransposed &gjit, const ExplicitFieldVector< FieldMatrix< K, GeometryJacobianInverseTransposed::cols, GeometryJacobianInverseTransposed::cols >, SIZE > &a, ExplicitFieldVector< FieldMatrix< K, GeometryJacobianInverseTransposed::rows, GeometryJacobianInverseTransposed::rows >, SIZE > &b)
Definition transformation.hh:60
constexpr void mv(const X &x, Y &y) const
typename Base::size_type size_type
typename Base::size_type size_type
Traits::size_type size_type
T field_type
Definition explicitfieldvector.hh:75
Definition fmatrixcol.hh:16
Definition shapefunctionset/vectorial.hh:25
static ComponentType begin()
Definition shapefunctionset/vectorial.hh:39
static const K & access(const VectorialType &x, const ComponentType &i)
Definition shapefunctionset/vectorial.hh:47
VectorialType::size_type ComponentType
Definition shapefunctionset/vectorial.hh:34
FieldTraits< VectorialType >::field_type field_type
Definition shapefunctionset/vectorial.hh:33
static VectorialType zeroVectorial()
Definition shapefunctionset/vectorial.hh:42
FieldVector< K, 1 > ScalarType
Definition shapefunctionset/vectorial.hh:30
VectorialType::size_type size_type
Definition shapefunctionset/vectorial.hh:35
FieldVector< K, dimR > VectorialType
Definition shapefunctionset/vectorial.hh:31
static ComponentType end()
Definition shapefunctionset/vectorial.hh:40
static size_type index(const ComponentType &i)
Definition shapefunctionset/vectorial.hh:50
static K & access(VectorialType &x, const ComponentType &i)
Definition shapefunctionset/vectorial.hh:48
static K & access(ScalarType &x)
Definition shapefunctionset/vectorial.hh:45
static const K & access(const ScalarType &x)
Definition shapefunctionset/vectorial.hh:44
FieldTraits< VectorialType >::field_type field_type
Definition shapefunctionset/vectorial.hh:59
static const K & access(const ScalarType &x)
Definition shapefunctionset/vectorial.hh:70
ExplicitFieldVector< K, dimR > VectorialType
Definition shapefunctionset/vectorial.hh:57
static K & access(VectorialType &x, const ComponentType &i)
Definition shapefunctionset/vectorial.hh:74
FieldVector< K, 1 > ScalarType
Definition shapefunctionset/vectorial.hh:56
VectorialType::size_type ComponentType
Definition shapefunctionset/vectorial.hh:60
Dune::Fem::MakeVectorialTraits< ExplicitFieldVector< K, 1 >, ExplicitFieldVector< K, dimR > >::begin
static ComponentType begin()
Definition shapefunctionset/vectorial.hh:65
static const K & access(const VectorialType &x, const ComponentType &i)
Definition shapefunctionset/vectorial.hh:73
VectorialType::size_type size_type
Definition shapefunctionset/vectorial.hh:61
static ComponentType end()
Definition shapefunctionset/vectorial.hh:66
Dune::Fem::MakeVectorialTraits< ExplicitFieldVector< K, 1 >, ExplicitFieldVector< K, dimR > >::index
static size_type index(const ComponentType &i)
Definition shapefunctionset/vectorial.hh:76
static VectorialType zeroVectorial()
Definition shapefunctionset/vectorial.hh:68
static K & access(ScalarType &x)
Definition shapefunctionset/vectorial.hh:71
static size_type index(const ComponentType &i)
Definition shapefunctionset/vectorial.hh:102
static ComponentType end()
Definition shapefunctionset/vectorial.hh:92
Dune::Fem::MakeVectorialTraits< FieldMatrix< K, 1, dimD >, FieldMatrix< K, dimR, dimD > >::size_type
VectorialType::size_type size_type
Definition shapefunctionset/vectorial.hh:87
FieldTraits< VectorialType >::field_type field_type
Definition shapefunctionset/vectorial.hh:85
static const FieldVector< K, dimD > & access(const ScalarType &x)
Definition shapefunctionset/vectorial.hh:96
static FieldVector< K, dimD > & access(ScalarType &x)
Definition shapefunctionset/vectorial.hh:97
static ComponentType begin()
Definition shapefunctionset/vectorial.hh:91
static const FieldVector< K, dimD > & access(const VectorialType &x, const ComponentType &i)
Definition shapefunctionset/vectorial.hh:99
FieldMatrix< K, dimR, dimD > VectorialType
Definition shapefunctionset/vectorial.hh:83
static FieldVector< K, dimD > & access(VectorialType &x, const ComponentType &i)
Definition shapefunctionset/vectorial.hh:100
static VectorialType zeroVectorial()
Definition shapefunctionset/vectorial.hh:94
FieldMatrix< K, 1, dimD > ScalarType
Definition shapefunctionset/vectorial.hh:82
VectorialType::size_type ComponentType
Definition shapefunctionset/vectorial.hh:86
Definition shapefunctionset/vectorial.hh:111
const ComponentType & component() const
Definition shapefunctionset/vectorial.hh:148
BasicMakeVectorialExpression(const ComponentType &component, const ScalarType &scalar)
Definition shapefunctionset/vectorial.hh:124
Traits::VectorialType VectorialType
Definition shapefunctionset/vectorial.hh:118
Traits::ComponentType ComponentType
Definition shapefunctionset/vectorial.hh:121
ScalarType scalar_
Definition shapefunctionset/vectorial.hh:155
ScalarType & scalar()
Definition shapefunctionset/vectorial.hh:151
const ThisType & operator/=(const field_type &s)
Definition shapefunctionset/vectorial.hh:142
Traits::size_type size_type
Definition shapefunctionset/vectorial.hh:122
const ThisType & operator*=(const field_type &s)
Definition shapefunctionset/vectorial.hh:136
ComponentType component_
Definition shapefunctionset/vectorial.hh:154
Traits::ScalarType ScalarType
Definition shapefunctionset/vectorial.hh:117
Traits::field_type field_type
Definition shapefunctionset/vectorial.hh:120
const ScalarType & scalar() const
Definition shapefunctionset/vectorial.hh:150
Definition shapefunctionset/vectorial.hh:166
MakeVectorialExpression(const ComponentType &component, const ScalarType &scalar)
Definition shapefunctionset/vectorial.hh:174
BaseType::ComponentType ComponentType
Definition shapefunctionset/vectorial.hh:171
BaseType::ScalarType ScalarType
Definition shapefunctionset/vectorial.hh:172
Definition shapefunctionset/vectorial.hh:182
field_type two_norm2() const
Definition shapefunctionset/vectorial.hh:213
BaseType::size_type size_type
Definition shapefunctionset/vectorial.hh:192
field_type one_norm() const
Definition shapefunctionset/vectorial.hh:211
BaseType::field_type field_type
Definition shapefunctionset/vectorial.hh:190
size_type size() const
Definition shapefunctionset/vectorial.hh:216
BaseType::ComponentType ComponentType
Definition shapefunctionset/vectorial.hh:191
field_type two_norm() const
Definition shapefunctionset/vectorial.hh:212
BaseType::VectorialType VectorialType
Definition shapefunctionset/vectorial.hh:188
field_type infinity_norm() const
Definition shapefunctionset/vectorial.hh:214
BaseType::ScalarType ScalarType
Definition shapefunctionset/vectorial.hh:187
MakeVectorialExpression(const ComponentType &component, const ScalarType &scalar)
Definition shapefunctionset/vectorial.hh:197
Definition shapefunctionset/vectorial.hh:224
field_type frobenius_norm() const
Definition shapefunctionset/vectorial.hh:287
BaseType::field_type field_type
Definition shapefunctionset/vectorial.hh:232
void mtv(const X &x, Y &y) const
Definition shapefunctionset/vectorial.hh:253
field_type infinity_norm() const
Definition shapefunctionset/vectorial.hh:289
size_type cols() const
Definition shapefunctionset/vectorial.hh:297
size_type N() const
Definition shapefunctionset/vectorial.hh:293
BaseType::size_type size_type
Definition shapefunctionset/vectorial.hh:234
void mmv(const X &x, Y &y) const
Definition shapefunctionset/vectorial.hh:274
BaseType::VectorialType VectorialType
Definition shapefunctionset/vectorial.hh:230
field_type frobenius_norm2() const
Definition shapefunctionset/vectorial.hh:288
void umv(const X &x, Y &y) const
Definition shapefunctionset/vectorial.hh:260
BaseType::ScalarType ScalarType
Definition shapefunctionset/vectorial.hh:229
size_type M() const
Definition shapefunctionset/vectorial.hh:294
BaseType::ComponentType ComponentType
Definition shapefunctionset/vectorial.hh:233
field_type determinant() const
Definition shapefunctionset/vectorial.hh:291
void mmtv(const X &x, Y &y) const
Definition shapefunctionset/vectorial.hh:281
MakeVectorialExpression(const ComponentType &component, const ScalarType &scalar)
Definition shapefunctionset/vectorial.hh:239
void mv(const X &x, Y &y) const
Definition shapefunctionset/vectorial.hh:244
void umtv(const X &x, Y &y) const
Definition shapefunctionset/vectorial.hh:267
size_type rows() const
Definition shapefunctionset/vectorial.hh:296
Definition shapefunctionset/vectorial.hh:432
FunctionSpace< DomainField, RangeField, dimD, dimR > Type
Definition shapefunctionset/vectorial.hh:437
Definition shapefunctionset/vectorial.hh:447
void hessianEach(const Point &x, Functor functor) const
Definition shapefunctionset/vectorial.hh:557
ScalarShapeFunctionSet ScalarShapeFunctionSetType
Definition shapefunctionset/vectorial.hh:451
void evaluateEach(const Point &x, Functor functor) const
Definition shapefunctionset/vectorial.hh:537
std::size_t size() const
Definition shapefunctionset/vectorial.hh:487
static constexpr bool codegenShapeFunctionSet
Definition shapefunctionset/vectorial.hh:455
static const int pointSetId
Definition shapefunctionset/vectorial.hh:456
const ScalarShapeFunctionSetType & scalarShapeFunctionSet() const
Definition shapefunctionset/vectorial.hh:482
ToNewRange< ScalarFunctionSpaceType, RangeVector >::Type FunctionSpaceType
Definition shapefunctionset/vectorial.hh:467
void jacobianEach(const Point &x, Functor functor) const
Definition shapefunctionset/vectorial.hh:547
int order() const
Definition shapefunctionset/vectorial.hh:484
static const std::size_t dimRangeFactor
Definition shapefunctionset/vectorial.hh:461
ScalarShapeFunctionSetType::FunctionSpaceType ScalarFunctionSpaceType
Definition shapefunctionset/vectorial.hh:459
ScalarShapeFunctionSet scalarShapeFunctionSet_
Definition shapefunctionset/vectorial.hh:499
VectorialShapeFunctionSet(const ScalarShapeFunctionSetType &scalarShapeFunctionSet)
Definition shapefunctionset/vectorial.hh:478
FunctionSpaceType::JacobianRangeType JacobianRangeType
Definition shapefunctionset/vectorial.hh:470
FunctionSpaceType::RangeType RangeType
Definition shapefunctionset/vectorial.hh:469
FunctionSpaceType::HessianRangeType HessianRangeType
Definition shapefunctionset/vectorial.hh:471
VectorialShapeFunctionSet(Args &&... args)
Definition shapefunctionset/vectorial.hh:474
Definition shapefunctionset/vectorial.hh:510
VectorialFunctor(const Functor &functor)
Definition shapefunctionset/vectorial.hh:511
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8