v0.14.0
Public Member Functions | Public Attributes | List of all members
OpCheckValsDiffVals Struct Reference
Inheritance diagram for OpCheckValsDiffVals:
[legend]
Collaboration diagram for OpCheckValsDiffVals:
[legend]

Public Member Functions

 OpCheckValsDiffVals (boost::shared_ptr< MatrixDouble > ptr_vals, boost::shared_ptr< VectorDouble > ptr_div, boost::shared_ptr< MatrixDouble > ptr_grad, boost::shared_ptr< MatrixDouble > ptr_hess)
 
MoFEMErrorCode doWork (int side, EntityType type, EntitiesFieldData::EntData &data)
 Operator for linear form, usually to calculate values on right hand side. More...
 
 OpCheckValsDiffVals (boost::shared_ptr< MatrixDouble > ptr_vals, boost::shared_ptr< MatrixDouble > ptr_grad)
 
 FTENSOR_INDEX (SPACE_DIM, i)
 
 FTENSOR_INDEX (SPACE_DIM, j)
 
 FTENSOR_INDEX (SPACE_DIM, k)
 
MoFEMErrorCode doWork (int side, EntityType type, EntitiesFieldData::EntData &data)
 Operator for linear form, usually to calculate values on right hand side. More...
 
 OpCheckValsDiffVals (VectorDouble &vals, MatrixDouble &diff_vals, boost::shared_ptr< VectorDouble > &ptr_vals, boost::shared_ptr< MatrixDouble > &ptr_diff_vals, bool check_grads)
 
MoFEMErrorCode doWork (int side, EntityType type, EntitiesFieldData::EntData &data)
 Operator for linear form, usually to calculate values on right hand side. More...
 
- Public Member Functions inherited from MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator
double getArea ()
 get area of face More...
 
VectorDoublegetNormal ()
 get triangle normal More...
 
VectorDoublegetTangent1 ()
 get triangle tangent 1 More...
 
VectorDoublegetTangent2 ()
 get triangle tangent 2 More...
 
auto getFTensor1Normal ()
 get normal as tensor More...
 
auto getFTensor1Tangent1 ()
 get tangentOne as tensor More...
 
auto getFTensor1Tangent2 ()
 get tangentTwo as tensor More...
 
int getNumNodes ()
 get element number of nodes More...
 
const EntityHandlegetConn ()
 get element connectivity More...
 
VectorDoublegetCoords ()
 get triangle coordinates More...
 
auto getFTensor1Coords ()
 get get coords at gauss points More...
 
MatrixDoublegetNormalsAtGaussPts ()
 if higher order geometry return normals at Gauss pts. More...
 
ublas::matrix_row< MatrixDoublegetNormalsAtGaussPts (const int gg)
 if higher order geometry return normals at Gauss pts. More...
 
MatrixDoublegetTangent1AtGaussPts ()
 if higher order geometry return tangent vector to triangle at Gauss pts. More...
 
MatrixDoublegetTangent2AtGaussPts ()
 if higher order geometry return tangent vector to triangle at Gauss pts. More...
 
auto getFTensor1NormalsAtGaussPts ()
 get normal at integration points More...
 
auto getFTensor1Tangent1AtGaussPts ()
 get tangent 1 at integration points More...
 
auto getFTensor1Tangent2AtGaussPts ()
 get tangent 2 at integration points More...
 
FaceElementForcesAndSourcesCoregetFaceFE ()
 return pointer to Generic Triangle Finite Element object More...
 
MoFEMErrorCode loopSideVolumes (const string fe_name, VolumeElementForcesAndSourcesCoreOnSide &fe_method)
 
- Public Member Functions inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
 UserDataOperator (const FieldSpace space, const char type=OPSPACE, const bool symm=true)
 
 UserDataOperator (const std::string field_name, const char type, const bool symm=true)
 
 UserDataOperator (const std::string row_field_name, const std::string col_field_name, const char type, const bool symm=true)
 
boost::shared_ptr< const NumeredEntFiniteElementgetNumeredEntFiniteElementPtr () const
 Return raw pointer to NumeredEntFiniteElement. More...
 
EntityHandle getFEEntityHandle () const
 Return finite element entity handle. More...
 
int getFEDim () const
 Get dimension of finite element. More...
 
EntityType getFEType () const
 Get dimension of finite element. More...
 
boost::weak_ptr< SideNumbergetSideNumberPtr (const int side_number, const EntityType type)
 Get the side number pointer. More...
 
EntityHandle getSideEntity (const int side_number, const EntityType type)
 Get the side entity. More...
 
int getNumberOfNodesOnElement () const
 Get the number of nodes on finite element. More...
 
MoFEMErrorCode getProblemRowIndices (const std::string filed_name, const EntityType type, const int side, VectorInt &indices) const
 Get row indices. More...
 
MoFEMErrorCode getProblemColIndices (const std::string filed_name, const EntityType type, const int side, VectorInt &indices) const
 Get col indices. More...
 
const FEMethodgetFEMethod () const
 Return raw pointer to Finite Element Method object. More...
 
int getOpType () const
 Get operator types. More...
 
void setOpType (const OpType type)
 Set operator type. More...
 
void addOpType (const OpType type)
 Add operator type. More...
 
int getNinTheLoop () const
 get number of finite element in the loop More...
 
int getLoopSize () const
 get size of elements in the loop More...
 
std::string getFEName () const
 Get name of the element. More...
 
ForcesAndSourcesCoregetPtrFE () const
 
ForcesAndSourcesCoregetSidePtrFE () const
 
ForcesAndSourcesCoregetRefinePtrFE () const
 
const PetscData::SwitchesgetDataCtx () const
 
const KspMethod::KSPContext getKSPCtx () const
 
const SnesMethod::SNESContext getSNESCtx () const
 
const TSMethod::TSContext getTSCtx () const
 
Vec getKSPf () const
 
Mat getKSPA () const
 
Mat getKSPB () const
 
Vec getSNESf () const
 
Vec getSNESx () const
 
Mat getSNESA () const
 
Mat getSNESB () const
 
Vec getTSu () const
 
Vec getTSu_t () const
 
Vec getTSu_tt () const
 
Vec getTSf () const
 
Mat getTSA () const
 
Mat getTSB () const
 
int getTSstep () const
 
double getTStime () const
 
double getTStimeStep () const
 
double getTSa () const
 
double getTSaa () const
 
MatrixDoublegetGaussPts ()
 matrix of integration (Gauss) points for Volume Element More...
 
auto getFTensor0IntegrationWeight ()
 Get integration weights. More...
 
MatrixDoublegetCoordsAtGaussPts ()
 Gauss points and weight, matrix (nb. of points x 3) More...
 
auto getFTensor1CoordsAtGaussPts ()
 Get coordinates at integration points assuming linear geometry. More...
 
double getMeasure () const
 get measure of element More...
 
doublegetMeasure ()
 get measure of element More...
 
MoFEMErrorCode loopSide (const string &fe_name, ForcesAndSourcesCore *side_fe, const size_t dim, const EntityHandle ent_for_side=0, const int verb=QUIET, const LogManager::SeverityLevel sev=Sev::noisy, AdjCache *adj_cache=nullptr)
 User calls this function to loop over elements on the side of face. This function calls finite element with its operator to do calculations. More...
 
MoFEMErrorCode loopThis (const string &fe_name, ForcesAndSourcesCore *this_fe, const int verb=QUIET, const LogManager::SeverityLevel sev=Sev::noisy)
 User calls this function to loop over the same element using a different set of integration points. This function calls finite element with its operator to do calculations. More...
 
MoFEMErrorCode loopParent (const string &fe_name, ForcesAndSourcesCore *parent_fe, const int verb=QUIET, const LogManager::SeverityLevel sev=Sev::noisy)
 User calls this function to loop over parent elements. This function calls finite element with its operator to do calculations. More...
 
MoFEMErrorCode loopChildren (const string &fe_name, ForcesAndSourcesCore *child_fe, const int verb=QUIET, const LogManager::SeverityLevel sev=Sev::noisy)
 User calls this function to loop over parent elements. This function calls finite element with its operator to do calculations. More...
 
- Public Member Functions inherited from MoFEM::DataOperator
 DataOperator (const bool symm=true)
 
virtual ~DataOperator ()=default
 
virtual MoFEMErrorCode doWork (int row_side, int col_side, EntityType row_type, EntityType col_type, EntitiesFieldData::EntData &row_data, EntitiesFieldData::EntData &col_data)
 Operator for bi-linear form, usually to calculate values on left hand side. More...
 
virtual MoFEMErrorCode opLhs (EntitiesFieldData &row_data, EntitiesFieldData &col_data)
 
virtual MoFEMErrorCode opRhs (EntitiesFieldData &data, const bool error_if_no_base=false)
 
bool getSymm () const
 Get if operator uses symmetry of DOFs or not. More...
 
void setSymm ()
 set if operator is executed taking in account symmetry More...
 
void unSetSymm ()
 unset if operator is executed for non symmetric problem More...
 

Public Attributes

boost::shared_ptr< MatrixDouble > ptrVals
 
boost::shared_ptr< VectorDouble > ptrDiv
 
boost::shared_ptr< MatrixDouble > ptrGrad
 
boost::shared_ptr< MatrixDouble > ptrHess
 
FTensor::Index< 'i', 3 > i
 
FTensor::Index< 'j', 2 > j
 
FTensor::Index< 'k', 2 > k
 
VectorDouble & vAls
 
MatrixDouble & diffVals
 
boost::shared_ptr< VectorDouble > ptrVals
 
boost::shared_ptr< MatrixDouble > ptrDiffVals
 
const bool checkGradients
 
FTensor::Index< 'i', SPACE_DIMi
 
- Public Attributes inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
char opType
 
std::string rowFieldName
 
std::string colFieldName
 
FieldSpace sPace
 
- Public Attributes inherited from MoFEM::DataOperator
DoWorkLhsHookFunType doWorkLhsHook
 
DoWorkRhsHookFunType doWorkRhsHook
 
bool sYmm
 If true assume that matrix is symmetric structure. More...
 
std::array< bool, MBMAXTYPE > doEntities
 If true operator is executed for entity. More...
 
booldoVertices
 \deprectaed If false skip vertices More...
 
booldoEdges
 \deprectaed If false skip edges More...
 
booldoQuads
 \deprectaed More...
 
booldoTris
 \deprectaed More...
 
booldoTets
 \deprectaed More...
 
booldoPrisms
 \deprectaed More...
 

Additional Inherited Members

- Public Types inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
enum  OpType {
  OPROW = 1 << 0, OPCOL = 1 << 1, OPROWCOL = 1 << 2, OPSPACE = 1 << 3,
  OPLAST = 1 << 3
}
 Controls loop over entities on element. More...
 
using AdjCache = std::map< EntityHandle, std::vector< boost::weak_ptr< NumeredEntFiniteElement > >>
 
- Public Types inherited from MoFEM::DataOperator
using DoWorkLhsHookFunType = boost::function< MoFEMErrorCode(DataOperator *op_ptr, int row_side, int col_side, EntityType row_type, EntityType col_type, EntitiesFieldData::EntData &row_data, EntitiesFieldData::EntData &col_data)>
 
using DoWorkRhsHookFunType = boost::function< MoFEMErrorCode(DataOperator *op_ptr, int side, EntityType type, EntitiesFieldData::EntData &data)>
 
- Static Public Attributes inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
static const char *const OpTypeNames []
 
- Protected Attributes inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
ForcesAndSourcesCoreptrFE
 

Detailed Description

Examples
hcurl_check_approx_in_2d.cpp, hdiv_check_approx_in_3d.cpp, and scalar_check_approximation.cpp.

Definition at line 161 of file hcurl_check_approx_in_2d.cpp.

Constructor & Destructor Documentation

◆ OpCheckValsDiffVals() [1/3]

OpCheckValsDiffVals::OpCheckValsDiffVals ( boost::shared_ptr< MatrixDouble >  ptr_vals,
boost::shared_ptr< VectorDouble >  ptr_div,
boost::shared_ptr< MatrixDouble >  ptr_grad,
boost::shared_ptr< MatrixDouble >  ptr_hess 
)
inline

Definition at line 167 of file hcurl_check_approx_in_2d.cpp.

171  : FaceEleOp("FIELD1", OPROW), ptrVals(ptr_vals), ptrDiv(ptr_div),
172  ptrGrad(ptr_grad), ptrHess(ptr_hess) {}

◆ OpCheckValsDiffVals() [2/3]

OpCheckValsDiffVals::OpCheckValsDiffVals ( boost::shared_ptr< MatrixDouble >  ptr_vals,
boost::shared_ptr< MatrixDouble >  ptr_grad 
)
inline

Definition at line 80 of file hdiv_check_approx_in_3d.cpp.

82  : EleOp(NOSPACE, OPSPACE), ptrVals(ptr_vals), ptrGrad(ptr_grad) {}

◆ OpCheckValsDiffVals() [3/3]

OpCheckValsDiffVals::OpCheckValsDiffVals ( VectorDouble &  vals,
MatrixDouble &  diff_vals,
boost::shared_ptr< VectorDouble > &  ptr_vals,
boost::shared_ptr< MatrixDouble > &  ptr_diff_vals,
bool  check_grads 
)
inline

Definition at line 170 of file scalar_check_approximation.cpp.

174  : DomainEleOp("FIELD1", OPROW), vAls(vals), diffVals(diff_vals),
175  ptrVals(ptr_vals), ptrDiffVals(ptr_diff_vals),
176  checkGradients(check_grads) {
177  std::fill(&doEntities[MBEDGE], &doEntities[MBMAXTYPE], false);
178  }

Member Function Documentation

◆ doWork() [1/3]

MoFEMErrorCode OpCheckValsDiffVals::doWork ( int  side,
EntityType  type,
EntitiesFieldData::EntData data 
)
inlinevirtual

Operator for linear form, usually to calculate values on right hand side.

Reimplemented from MoFEM::DataOperator.

Definition at line 88 of file hdiv_check_approx_in_3d.cpp.

89  {
91 
92  const double eps = 1e-6;
93  const int nb_gauss_pts = getGaussPts().size2();
94 
95  auto t_vals_from_op = getFTensor1FromMat<SPACE_DIM>(*ptrVals);
96  auto t_grad_from_op = getFTensor2FromMat<SPACE_DIM, SPACE_DIM>(*ptrGrad);
97 
98  for (int gg = 0; gg != nb_gauss_pts; gg++) {
99  const double x = getCoordsAtGaussPts()(gg, 0);
100  const double y = getCoordsAtGaussPts()(gg, 1);
101  const double z = getCoordsAtGaussPts()(gg, 2);
102 
103  // Check approximation
105  delta_val(i) = t_vals_from_op(i) - ApproxFunctions::fUn(x, y, z)(i);
106  double err_val = sqrt(delta_val(i) * delta_val(i));
107  MOFEM_LOG("SELF", Sev::verbose) << "Approximation error: " << err_val;
108 
109  if (err_val > eps)
110  SETERRQ1(PETSC_COMM_SELF, MOFEM_ATOM_TEST_INVALID, "Wrong value %4.3e",
111  err_val);
112 
113 
115  delta_diff_val(i, j) =
116  t_grad_from_op(i, j) - ApproxFunctions::diffFun(x, y, z)(i, j);
117  double err_diff_val = sqrt(delta_diff_val(i, j) * delta_diff_val(i, j));
118  if (err_diff_val > eps)
119  SETERRQ1(PETSC_COMM_SELF, MOFEM_ATOM_TEST_INVALID,
120  "Wrong derivative of value %4.3e", err_diff_val);
121 
122  ++t_vals_from_op;
123  ++t_grad_from_op;
124  }
126  }

◆ doWork() [2/3]

MoFEMErrorCode OpCheckValsDiffVals::doWork ( int  side,
EntityType  type,
EntitiesFieldData::EntData data 
)
inlinevirtual

Operator for linear form, usually to calculate values on right hand side.

Reimplemented from MoFEM::DataOperator.

Definition at line 178 of file hcurl_check_approx_in_2d.cpp.

179  {
181  const double eps = 1e-6;
182  if (type == MBEDGE && side == 0) {
183  const int nb_gauss_pts = data.getN().size1();
184 
185  auto t_vals_from_op = getFTensor1FromMat<3>(*ptrVals);
186  auto t_div_from_op = getFTensor0FromVec(*ptrDiv);
187  auto t_grad_from_op = getFTensor2FromMat<3, 2>(*ptrGrad);
188  auto t_hess_from_op = getFTensor3FromMat<3, 2, 2>(*ptrHess);
189 
190  for (int gg = 0; gg != nb_gauss_pts; gg++) {
191  const double x = getCoordsAtGaussPts()(gg, 0);
192  const double y = getCoordsAtGaussPts()(gg, 1);
193 
194  // Check approximation
195  FTensor::Tensor1<double, 3> delta_val;
196  delta_val(i) = t_vals_from_op(i) - ApproxFunctions::fUn(x, y, 0)(i);
197  double err_val = sqrt(delta_val(i) * delta_val(i));
198  if (err_val > eps)
199  SETERRQ1(PETSC_COMM_SELF, MOFEM_ATOM_TEST_INVALID,
200  "Wrong value %4.3e", err_val);
201 
202  FTensor::Tensor2<double, 3, 2> delta_diff_val;
203  delta_diff_val(i, j) =
204  t_grad_from_op(i, j) - ApproxFunctions::diffFun(x, y)(i, j);
205  double err_diff_val = sqrt(delta_diff_val(i, j) * delta_diff_val(i, j));
206  if (err_diff_val > eps)
207  SETERRQ1(PETSC_COMM_SELF, MOFEM_ATOM_TEST_INVALID,
208  "Wrong derivative of value %4.3e", err_diff_val);
209 
210  double div = t_grad_from_op(0, 0) + t_grad_from_op(1, 1);
211  double err_div = div - t_div_from_op;
212  if (err_div > eps)
213  SETERRQ3(PETSC_COMM_SELF, MOFEM_ATOM_TEST_INVALID,
214  "Wrong divergence from operator %4.3e (%4.3e != %4.3e)",
215  err_div, div, t_div_from_op);
216 
217  FTensor::Tensor3<double, 3, 2, 2> delta_diff2_val;
218  delta_diff2_val(i, j, k) =
219  t_hess_from_op(i, j, k) - ApproxFunctions::diff2Fun(x, y)(i, j, k);
220  double hess_diff_error =
221  sqrt(delta_diff2_val(i, j, k) * delta_diff2_val(i, j, k));
222  if (hess_diff_error > eps)
223  SETERRQ1(PETSC_COMM_SELF, MOFEM_ATOM_TEST_INVALID,
224  "Wrong hessian from operator %4.3e", hess_diff_error);
225 
226  ++t_vals_from_op;
227  ++t_div_from_op;
228  ++t_grad_from_op;
229  ++t_hess_from_op;
230  }
231  }
233  }

◆ doWork() [3/3]

MoFEMErrorCode OpCheckValsDiffVals::doWork ( int  side,
EntityType  type,
EntitiesFieldData::EntData data 
)
inlinevirtual

Operator for linear form, usually to calculate values on right hand side.

Reimplemented from MoFEM::DataOperator.

Definition at line 182 of file scalar_check_approximation.cpp.

183  {
185  const double eps = 1e-6;
186  const int nb_gauss_pts = data.getN().size1();
187 
188  auto t_vals = getFTensor0FromVec(vAls);
189 
190  auto t_ptr_vals = getFTensor0FromVec(*ptrVals);
191 
192  for (int gg = 0; gg != nb_gauss_pts; gg++) {
193 
194  double err_val;
195 
196  // Check user data operators
197  err_val = std::abs(t_vals - t_ptr_vals);
198  MOFEM_LOG("AT", Sev::noisy) << "Val op error " << err_val;
199 
200  if (err_val > eps)
201  SETERRQ1(PETSC_COMM_SELF, MOFEM_ATOM_TEST_INVALID,
202  "Wrong value from operator %4.3e", err_val);
203 
204  const double x = getCoordsAtGaussPts()(gg, 0);
205  const double y = getCoordsAtGaussPts()(gg, 1);
206  const double z = getCoordsAtGaussPts()(gg, 2);
207 
208  // Check approximation
209  const double delta_val = t_vals - ApproxFunctions::fUn(x, y, z);
210 
211  err_val = std::fabs(delta_val * delta_val);
212  MOFEM_LOG("AT", Sev::verbose) << err_val << " : " << t_vals;
213  if (err_val > eps)
214  SETERRQ1(PETSC_COMM_SELF, MOFEM_ATOM_TEST_INVALID, "Wrong value %4.3e",
215  err_val);
216 
217  ++t_vals;
218  ++t_ptr_vals;
219  }
220 
221  if (checkGradients) {
222 
223  auto t_diff_vals = getFTensor1FromMat<SPACE_DIM>(diffVals);
224  auto t_ptr_diff_vals = getFTensor1FromMat<SPACE_DIM>(*ptrDiffVals);
225 
226  for (int gg = 0; gg != nb_gauss_pts; gg++) {
227 
228  FTensor::Tensor1<double, SPACE_DIM> t_delta_diff_val;
229  double err_diff_val;
230 
231  t_delta_diff_val(i) = t_diff_vals(i) - t_ptr_diff_vals(i);
232  err_diff_val = sqrt(t_delta_diff_val(i) * t_delta_diff_val(i));
233  MOFEM_LOG("AT", Sev::noisy) << "Diff val op error " << err_diff_val;
234 
235  if (err_diff_val > eps)
236  SETERRQ1(PETSC_COMM_SELF, MOFEM_ATOM_TEST_INVALID,
237  "Wrong derivatives from operator %4.3e", err_diff_val);
238 
239  const double x = getCoordsAtGaussPts()(gg, 0);
240  const double y = getCoordsAtGaussPts()(gg, 1);
241  const double z = getCoordsAtGaussPts()(gg, 2);
242 
243  // Check approximation
244  auto t_diff_anal = ApproxFunctions::diffFun(x, y, z);
245  t_delta_diff_val(i) = t_diff_vals(i) - t_diff_anal(i);
246 
247  err_diff_val = sqrt(t_delta_diff_val(i) * t_delta_diff_val(i));
248  if (SPACE_DIM == 3)
249  MOFEM_LOG("AT", Sev::noisy)
250  << "Diff val " << err_diff_val << " : "
251  << sqrt(t_diff_vals(i) * t_diff_vals(i)) << " : "
252  << t_diff_vals(0) << " (" << t_diff_anal(0) << ") "
253  << t_diff_vals(1) << " (" << t_diff_anal(1) << ") "
254  << t_diff_vals(2) << " (" << t_diff_anal(2) << ")";
255  else
256  MOFEM_LOG("AT", Sev::noisy)
257  << "Diff val " << err_diff_val << " : "
258  << sqrt(t_diff_vals(i) * t_diff_vals(i)) << " : "
259  << t_diff_vals(0) << " (" << t_diff_anal(0) << ") "
260  << t_diff_vals(1) << " (" << t_diff_anal(1) << ")";
261 
262  MOFEM_LOG("AT", Sev::verbose)
263  << getCoords()(3 * 1 + 0) - getCoords()(3 * 0 + 0);
264  MOFEM_LOG("AT", Sev::verbose)
265  << getCoords()(3 * 1 + 1) - getCoords()(3 * 0 + 1);
266  MOFEM_LOG("AT", Sev::verbose)
267  << getCoords()(3 * 1 + 2) - getCoords()(3 * 0 + 2);
268 
269  MOFEM_LOG("AT", Sev::verbose) << "Diff val error " << err_diff_val;
270  if (err_diff_val > eps)
271  SETERRQ2(PETSC_COMM_SELF, MOFEM_ATOM_TEST_INVALID,
272  "Wrong derivative of value %4.3e %4.3e", err_diff_val,
273  t_diff_anal.l2());
274 
275  ++t_diff_vals;
276  ++t_ptr_diff_vals;
277  }
278  }
279 
281  }

◆ FTENSOR_INDEX() [1/3]

OpCheckValsDiffVals::FTENSOR_INDEX ( SPACE_DIM  ,
i   
)

◆ FTENSOR_INDEX() [2/3]

OpCheckValsDiffVals::FTENSOR_INDEX ( SPACE_DIM  ,
j   
)

◆ FTENSOR_INDEX() [3/3]

OpCheckValsDiffVals::FTENSOR_INDEX ( SPACE_DIM  ,
k   
)

Member Data Documentation

◆ checkGradients

const bool OpCheckValsDiffVals::checkGradients

Definition at line 168 of file scalar_check_approximation.cpp.

◆ diffVals

MatrixDouble& OpCheckValsDiffVals::diffVals

Definition at line 165 of file scalar_check_approximation.cpp.

◆ i [1/2]

FTensor::Index<'i', 3> OpCheckValsDiffVals::i

Definition at line 174 of file hcurl_check_approx_in_2d.cpp.

◆ i [2/2]

FTensor::Index<'i', SPACE_DIM> OpCheckValsDiffVals::i

Definition at line 180 of file scalar_check_approximation.cpp.

◆ j

FTensor::Index<'j', 2> OpCheckValsDiffVals::j

Definition at line 175 of file hcurl_check_approx_in_2d.cpp.

◆ k

FTensor::Index<'k', 2> OpCheckValsDiffVals::k

Definition at line 176 of file hcurl_check_approx_in_2d.cpp.

◆ ptrDiffVals

boost::shared_ptr<MatrixDouble> OpCheckValsDiffVals::ptrDiffVals

Definition at line 167 of file scalar_check_approximation.cpp.

◆ ptrDiv

boost::shared_ptr<VectorDouble> OpCheckValsDiffVals::ptrDiv

Definition at line 163 of file hcurl_check_approx_in_2d.cpp.

◆ ptrGrad

boost::shared_ptr< MatrixDouble > OpCheckValsDiffVals::ptrGrad

Definition at line 164 of file hcurl_check_approx_in_2d.cpp.

◆ ptrHess

boost::shared_ptr<MatrixDouble> OpCheckValsDiffVals::ptrHess

Definition at line 165 of file hcurl_check_approx_in_2d.cpp.

◆ ptrVals [1/2]

boost::shared_ptr< MatrixDouble > OpCheckValsDiffVals::ptrVals

Definition at line 162 of file hcurl_check_approx_in_2d.cpp.

◆ ptrVals [2/2]

boost::shared_ptr<VectorDouble> OpCheckValsDiffVals::ptrVals

Definition at line 166 of file scalar_check_approximation.cpp.

◆ vAls

VectorDouble& OpCheckValsDiffVals::vAls

Definition at line 164 of file scalar_check_approximation.cpp.


The documentation for this struct was generated from the following files:
NOSPACE
@ NOSPACE
Definition: definitions.h:83
OpCheckValsDiffVals::diffVals
MatrixDouble & diffVals
Definition: scalar_check_approximation.cpp:165
OpCheckValsDiffVals::ptrGrad
boost::shared_ptr< MatrixDouble > ptrGrad
Definition: hcurl_check_approx_in_2d.cpp:164
OpCheckValsDiffVals::ptrDiffVals
boost::shared_ptr< MatrixDouble > ptrDiffVals
Definition: scalar_check_approximation.cpp:167
FTensor::Tensor1
Definition: Tensor1_value.hpp:8
MoFEM::ForcesAndSourcesCore::UserDataOperator::OPSPACE
@ OPSPACE
operator do Work is execute on space data
Definition: ForcesAndSourcesCore.hpp:570
SPACE_DIM
constexpr int SPACE_DIM
Definition: scalar_check_approximation.cpp:21
ApproxFunctions::diff2Fun
static FTensor::Tensor3< double, BASE_DIM, SPACE_DIM, SPACE_DIM > diff2Fun(const double x, const double y)
Definition: hcurl_check_approx_in_2d.cpp:92
DomainEleOp
DomainEle::UserDataOperator DomainEleOp
Definition: scalar_check_approximation.cpp:30
ApproxFunctions::fUn
static FTensor::Tensor1< double, BASE_DIM > fUn(const double x, const double y, double z)
Definition: hcurl_check_approx_in_2d.cpp:46
FTensor::Tensor2
Definition: Tensor2_value.hpp:16
MoFEM::ForcesAndSourcesCore::UserDataOperator::getGaussPts
MatrixDouble & getGaussPts()
matrix of integration (Gauss) points for Volume Element
Definition: ForcesAndSourcesCore.hpp:1236
FTensor::Tensor3
Definition: Tensor3_value.hpp:12
EleOp
Ele::UserDataOperator EleOp
Definition: hdiv_check_approx_in_3d.cpp:19
convert.type
type
Definition: convert.py:64
OpCheckValsDiffVals::ptrHess
boost::shared_ptr< MatrixDouble > ptrHess
Definition: hcurl_check_approx_in_2d.cpp:165
MoFEM::getFTensor0FromVec
static auto getFTensor0FromVec(ublas::vector< T, A > &data)
Get tensor rank 0 (scalar) form data vector.
Definition: Templates.hpp:135
OpCheckValsDiffVals::ptrDiv
boost::shared_ptr< VectorDouble > ptrDiv
Definition: hcurl_check_approx_in_2d.cpp:163
OpCheckValsDiffVals::i
FTensor::Index< 'i', 3 > i
Definition: hcurl_check_approx_in_2d.cpp:174
MoFEM::ForcesAndSourcesCore::UserDataOperator::getCoordsAtGaussPts
MatrixDouble & getCoordsAtGaussPts()
Gauss points and weight, matrix (nb. of points x 3)
Definition: ForcesAndSourcesCore.hpp:1265
OpCheckValsDiffVals::ptrVals
boost::shared_ptr< MatrixDouble > ptrVals
Definition: hcurl_check_approx_in_2d.cpp:162
MoFEM::DataOperator::doEntities
std::array< bool, MBMAXTYPE > doEntities
If true operator is executed for entity.
Definition: DataOperators.hpp:85
MOFEM_LOG
#define MOFEM_LOG(channel, severity)
Log.
Definition: LogManager.hpp:308
MoFEM::EntitiesFieldData::EntData::getN
MatrixDouble & getN(const FieldApproximationBase base)
get base functions this return matrix (nb. of rows is equal to nb. of Gauss pts, nb....
Definition: EntitiesFieldData.hpp:1318
OpCheckValsDiffVals::checkGradients
const bool checkGradients
Definition: scalar_check_approximation.cpp:168
ApproxFunctions::diffFun
static FTensor::Tensor2< double, BASE_DIM, SPACE_DIM > diffFun(const double x, const double y)
Definition: hcurl_check_approx_in_2d.cpp:68
eps
static const double eps
Definition: check_base_functions_derivatives_on_tet.cpp:11
OpCheckValsDiffVals::k
FTensor::Index< 'k', 2 > k
Definition: hcurl_check_approx_in_2d.cpp:176
OpCheckValsDiffVals::j
FTensor::Index< 'j', 2 > j
Definition: hcurl_check_approx_in_2d.cpp:175
OpCheckValsDiffVals::vAls
VectorDouble & vAls
Definition: scalar_check_approximation.cpp:164
MOFEM_ATOM_TEST_INVALID
@ MOFEM_ATOM_TEST_INVALID
Definition: definitions.h:40
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:429
FaceEleOp
FaceEle::UserDataOperator FaceEleOp
Definition: hcurl_check_approx_in_2d.cpp:18
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:359
MoFEM::ForcesAndSourcesCore::UserDataOperator::OPROW
@ OPROW
operator doWork function is executed on FE rows
Definition: ForcesAndSourcesCore.hpp:567
MoFEM::FaceElementForcesAndSourcesCore::UserDataOperator::getCoords
VectorDouble & getCoords()
get triangle coordinates
Definition: FaceElementForcesAndSourcesCore.hpp:279