Eigen::Matrix< CepsScalar, Eigen::Dynamic, 1 > CepsMathDynamic1D
Dynamic 1D array, eigen format.
CepsScalar CepsMathScalar
Real numbers.
std::map< _Key, _Tp, _Compare, _Alloc > CepsMap
C++ map.
std::set< _Type, _Compare, _Alloc > CepsSet
C++ set.
Eigen::Matrix< CepsScalar, 3, 3 > CepsMathTensor
Tensor, eigen format.
std::vector< _Type, _Alloc > CepsVector
C++ vector.
float CepsReal
Need single precision floating point.
CepsArray3< CepsReal > CepsReal3D
Three real scalars, used like this for compatibility in polynomials.
constexpr CepsAttribute CepsUniversal
This attribute means "everywhere".
Eigen::Matrix< CepsScalar, Eigen::Dynamic, Eigen::Dynamic > CepsMathDynamic2D
Dynamic 2D array, eigen format.
A base class made for Finite Element assembler.
Abstract class for finite elements.
Assembles the stiffness matrix for a given k-simplexes geometry.
void computeBlocksOnElementAtQuadPoint(FEBase *element, CepsReal3D xQ, CepsReal t, const CepsMathDynamic1D &phi, const CepsMathDynamic2D &gradPhi) override
The function that is called to get the coefficients of the submatrix on a given finite element....
CepsMap< CepsUnknownIndex, CepsMathTensor > m_cstTensors
Diffusion coefficient.
CepsMap< CepsUnknownIndex, CepsMathScalar > m_cstScalars
Diffusion coefficient.
CepsBool m_isTimeDependant
Enforce time dependencie.
CepsBool isChangingBetweenTimes(CepsReal t1, CepsReal t2) const override
Tells if this assembler changes between the two times.
CepsMap< CepsUnknownIndex, SAFunc< CepsMathScalar > * > m_fctScalars
Diffusion coefficient.
virtual ~FEDivKGradAssembler()
Destructor.
CepsMap< CepsUnknownIndex, SAFunc< CepsMathTensor > * > m_fctTensors
Diffusion coefficient.
FEDivKGradAssembler()
Default constructor (for virtual inheritance)
CepsVector< CepsMathTensor > getDiffusionTensorsForUnknowns(const CepsVector< Unknown * > &us, FEBase *elem, CepsReal3D x, CepsReal t) const
Returns tensors with the correct k tensor type. To be defined in child classes.
void setKForUnknown(Unknown *u, CepsMathScalar k)
Register the diffusion coefficient (x,t,...) for given unknown.
Holds all finite elements corresponding to each geometrical element.
A SAFunc is a ceps::Function that uses CepsStandardArgs as argument of call operator (),...
A class used to defined an unknown of a PDE problem The unknown can be defined on a specific region,...