libMesh
Loading...
Searching...
No Matches
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
FETestBase< order, family, elem_type, build_nx, CaseName > Class Template Reference

#include <fe_test.h>

Inheritance diagram for FETestBase< order, family, elem_type, build_nx, CaseName >:
[legend]

Public Member Functions

void setUp ()
 
void tearDown ()
 

Static Protected Member Functions

static RealGradient true_gradient (Point p)
 
static RealTensor true_hessian (Point p)
 

Protected Attributes

std::string libmesh_suite_name
 
std::string _case_name
 Name of the case, can be used in the test to switch cases.
 
unsigned int _dim
 
unsigned int _nx
 
unsigned int _ny
 
unsigned int _nz
 
Elem * _elem
 
std::vector< dof_id_type > _dof_indices
 
System * _sys
 
std::unique_ptr< Mesh > _mesh
 
std::unique_ptr< EquationSystems > _es
 
std::unique_ptr< FEBase > _fe
 
std::unique_ptr< QGauss > _qrule
 
Real _value_tol
 
Real _grad_tol
 
Real _hess_tol
 
Real _past_vertex_offset
 The offset, as a fraction of an edge, of the points past the vertices.
 
Real _past_vertex_tol_factor
 The factor by which the tolerances grow at the points past the vertices.
 

Detailed Description

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
class FETestBase< order, family, elem_type, build_nx, CaseName >

Definition at line 275 of file fe_test.h.

Member Function Documentation

◆ setUp()

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
void FETestBase< order, family, elem_type, build_nx, CaseName >::setUp ( )
inline

Definition at line 368 of file fe_test.h.

369 {
370 _mesh = std::make_unique<Mesh>(*TestCommWorld);
371 _dim = Elem::type_to_dim_map[elem_type];
372 const unsigned int build_ny = (_dim > 1) * build_nx;
373 const unsigned int build_nz = (_dim > 2) * build_nx;
374
375 unsigned char weight_index = 0;
376
377 if (family == RATIONAL_BERNSTEIN)
378 {
379 // Make sure we can handle non-zero weight indices
380 _mesh->add_node_integer("buffer integer");
381
382 // Default weight to 1.0 so we don't get NaN from contains_point
383 // checks with a default GhostPointNeighbors ghosting
384 const Real default_weight = 1.0;
385 weight_index = cast_int<unsigned char>
386 (_mesh->add_node_datum<Real>("rational_weight", true,
387 &default_weight));
388 libmesh_assert_not_equal_to(weight_index, 0);
389
390 // Set mapping data but not type, since here we're testing
391 // rational basis functions in the FE space but testing then
392 // with Lagrange bases for the mapping space.
393 _mesh->set_default_mapping_data(weight_index);
394 }
395
396 if (elem_type == C0POLYGON)
397 {
398 // Build a pentagon by hand for testing purposes. Make this
399 // one non-skewed so a MONOMIAL basis will be able to exactly
400 // represent the polynomials we're projecting.
401
402 _mesh->add_point(Point(0, 0), 0);
403 _mesh->add_point(Point(1, 0), 1);
404 _mesh->add_point(Point(1+cos(2*libMesh::pi/5), sin(2*libMesh::pi/5)), 2);
405 _mesh->add_point(Point(0.5, sin(2*libMesh::pi/5)+sin(libMesh::pi/5)), 3);
406 _mesh->add_point(Point(-cos(2*libMesh::pi/5), sin(2*libMesh::pi/5)), 4);
407
408 std::unique_ptr<Elem> polygon = std::make_unique<C0Polygon>(5);
409 for (auto i : make_range(5))
410 polygon->set_node(i, _mesh->node_ptr(i));
411 polygon->set_id() = 0;
412
413 _mesh->add_elem(std::move(polygon));
414 _mesh->prepare_for_use();
415 }
416 else if (elem_type == C0POLYHEDRON)
417 {
418 // Build a plain cube by hand for testing purposes. We could
419 // upgrade this, but it should be to something non-skewed so a
420 // MONOMIAL basis will be able to exactly represent the
421 // polynomials we're projecting.
422 //
423 // See elem_test.h for the limitations here.
424
425 _mesh->add_point(Point(0, 0, 0), 0);
426 _mesh->add_point(Point(1, 0, 0), 1);
427 _mesh->add_point(Point(1, 1, 0), 2);
428 _mesh->add_point(Point(0, 1, 0), 3);
429 _mesh->add_point(Point(0, 0, 1), 4);
430 _mesh->add_point(Point(1, 0, 1), 5);
431 _mesh->add_point(Point(1, 1, 1), 6);
432 _mesh->add_point(Point(0, 1, 1), 7);
433
434 // Pick case
435 std::vector<std::vector<unsigned int>> nodes_on_side;
436 if (_case_name == "Default")
437 nodes_on_side = { {0, 1, 2, 3}, // min z
438 {0, 1, 5, 4}, // min y
439 {2, 6, 5, 1}, // max x
440 {2, 3, 7, 6}, // max y
441 {0, 4, 7, 3}, // min x
442 {5, 6, 7, 4} }; // max z
443 else if (_case_name == "MidNode")
444 nodes_on_side = { {0, 1, 2, 3}, // min z
445 {0, 1, 5, 4}, // min y
446 {1, 2, 6, 5}, // max x
447 {2, 3, 7, 6}, // max y
448 {3, 0, 4, 7}, // min x
449 {4, 5, 6, 7} }; // max z
450 else
451 libmesh_error_msg("Unknown case name: " + _case_name);
452
453 // Build all the sides.
454 std::vector<std::shared_ptr<Polygon>> sides(nodes_on_side.size());
455
456 for (auto s : index_range(nodes_on_side))
457 {
458 const auto & nodes_on_s = nodes_on_side[s];
459 sides[s] = std::make_shared<C0Polygon>(nodes_on_s.size());
460 for (auto i : index_range(nodes_on_s))
461 sides[s]->set_node(i, _mesh->node_ptr(nodes_on_s[i]));
462 }
463
464 std::unique_ptr<libMesh::Node> mid_elem_node;
465 std::unique_ptr<Elem> polyhedron = std::make_unique<C0Polyhedron>(sides, mid_elem_node);
466 _mesh->add_elem(std::move(polyhedron));
467 if (mid_elem_node)
468 _mesh->add_node(std::move(mid_elem_node));
469 _mesh->prepare_for_use();
470 }
471 else
472 {
474 build_nx, build_ny, build_nz,
475 0., 1., 0., 1., 0., 1.,
476 elem_type);
477 }
478
479 // For debugging purposes it can be helpful to only consider one
480 // element even when we're using an element type that requires
481 // more than one element to fill out a square or cube.
482#if 0
483 for (dof_id_type i = 0; i != _mesh->max_elem_id(); ++i)
484 {
485 Elem * elem = _mesh->query_elem_ptr(i);
486 if (elem && elem->id())
487 _mesh->delete_elem(elem);
488 }
489 _mesh->prepare_for_use();
490 CPPUNIT_ASSERT_EQUAL(_mesh->n_elem(), dof_id_type(1));
491#endif
492
493 // Permute our elements randomly and rotate and skew our mesh so
494 // we test all sorts of orientations ... except with Hermite
495 // elements, which are only designed to support meshes with a
496 // single orientation shared by all elements. We're also not
497 // rotating and/or skewing the rational elements, since our test
498 // solution was designed for a specific weighted mesh.
499 if (family != HERMITE &&
500 family != RATIONAL_BERNSTEIN)
501 {
503
504 // Not yet testing manifolds embedded in higher-D space
505 if (_dim > 1)
507 8*(_dim>2), 16*(_dim>2));
508
509 SkewFunc skew_func;
511 }
512
513 // Set rational weights so we can exactly match our test solution
514 if (family == RATIONAL_BERNSTEIN)
515 {
516 for (auto elem : _mesh->active_element_ptr_range())
517 {
518 // Workaround for nvc++ bug
519 Elem & e = *elem;
520
521 const unsigned int nv = elem->n_vertices();
522 const unsigned int nn = elem->n_nodes();
523 // We want interiors in lower dimensional elements treated
524 // like edges or faces as appropriate.
525 const unsigned int n_edges =
526 (elem->type() == EDGE3) ? 1 : elem->n_edges();
527 const unsigned int n_faces =
528 (elem->type() == QUAD9) ? 1 : elem->n_faces();
529 const unsigned int nve = std::min(nv + n_edges, nn);
530 const unsigned int nvef = std::min(nve + n_faces, nn);
531
532 for (unsigned int i = 0; i != nv; ++i)
533 e.node_ref(i).set_extra_datum<Real>(weight_index, 1.);
534 for (unsigned int i = nv; i != nve; ++i)
535 e.node_ref(i).set_extra_datum<Real>(weight_index, rational_w);
536 const Real w2 = rational_w * rational_w;
537 for (unsigned int i = nve; i != nvef; ++i)
538 e.node_ref(i).set_extra_datum<Real>(weight_index, w2);
539 const Real w3 = rational_w * w2;
540 for (unsigned int i = nvef; i != nn; ++i)
541 e.node_ref(i).set_extra_datum<Real>(weight_index, w3);
542 }
543 }
544
545 _mesh->complete_preparation();
546 _es = std::make_unique<EquationSystems>(*_mesh);
547 _sys = &(_es->add_system<System> ("SimpleSystem"));
548 _sys->add_variable("u", order, family);
549 _es->init();
550
551 if (family == RATIONAL_BERNSTEIN && order > 1)
552 {
554 }
555 else if (order > 3)
556 {
558 }
559 // Lagrange "cubic" on Tet7 only supports a bubble function, not
560 // all of P^3
561 else if (FE_CAN_TEST_CUBIC)
562 {
564 }
565 else if (order > 1)
566 {
568 }
569 else
570 {
572 }
573
574 FEType fe_type = _sys->variable_type(0);
575 _fe = FEBase::build(_dim, fe_type);
576
577 // Create quadrature rule for use in computing dual shape coefficients
578 _qrule = std::make_unique<QGauss>(_dim, fe_type.default_quadrature_order());
579 _fe->attach_quadrature_rule(_qrule.get());
580
581 auto rng = _mesh->active_local_element_ptr_range();
582 this->_elem = rng.begin() == rng.end() ? nullptr : *(rng.begin());
583
585
586 _nx = 10;
587 _ny = (_dim > 1) ? _nx : 1;
588 _nz = (_dim > 2) ? _nx : 1;
589
590 this->_value_tol = TOLERANCE * sqrt(TOLERANCE);
591
592 // We see 6.5*tol*sqrt(tol) errors on cubic Hermites with the fe_cubic
593 // hermite test function
594 // On Tri7 we see 10*tol*sqrt(tol) errors, even!
595 // On Tet14 Monomial gives us at least 13*tol*sqrt(tol) in some
596 // cases
597 this->_grad_tol = 15 * TOLERANCE * sqrt(TOLERANCE);
598
599 this->_hess_tol = sqrt(TOLERANCE); // FIXME: we see some ~1e-5 errors?!?
600
601 // Reference vertices have coordinates of 0 and +/-1, so with a power of two offset the
602 // barycentric coordinates of each point, and their sums and differences, are computed
603 // exactly. A combination which vanishes on a point is then evaluated as exactly zero.
604 this->_past_vertex_offset = 0.25;
605
606 // Shape functions grow outside the element, and with them the rounding error in the
607 // solution there, so evaluations past the vertices get looser tolerances. Along the line
608 // through an edge the error is a polynomial of degree at most p, so an error within a
609 // tolerance on the edge is within T_p(1 + 2*offset) times that tolerance at offset past
610 // the edge's end, where T_p is the Chebyshev polynomial. Gradient errors have lower degree
611 // and grow more slowly.
612 const Real x = 1 + 2 * this->_past_vertex_offset;
613 Real t_prev = 1, t = x;
614 for (unsigned int k = 1; k < static_cast<unsigned int>(order); ++k)
615 t_prev = std::exchange(t, 2 * x * t - t_prev);
616 this->_past_vertex_tol_factor = (order == CONSTANT) ? 1 : t;
617
618 // Prerequest everything we'll want to calculate later.
619 _fe->get_phi();
620 _fe->get_dphi();
621 _fe->get_dphidx();
622#if LIBMESH_DIM > 1
623 _fe->get_dphidy();
624#endif
625#if LIBMESH_DIM > 2
626 _fe->get_dphidz();
627#endif
628
629#if LIBMESH_ENABLE_SECOND_DERIVATIVES
630
631 // Szabab elements don't have second derivatives yet
632 if (family == SZABAB)
633 return;
634
635 _fe->get_d2phi();
636 _fe->get_d2phidx2();
637#if LIBMESH_DIM > 1
638 _fe->get_d2phidxdy();
639 _fe->get_d2phidy2();
640#endif
641#if LIBMESH_DIM > 2
642 _fe->get_d2phidxdz();
643 _fe->get_d2phidydz();
644 _fe->get_d2phidz2();
645#endif
646
647#endif
648 }
unsigned int _ny
Definition fe_test.h:283
unsigned int _dim
Definition fe_test.h:283
Real _past_vertex_tol_factor
The factor by which the tolerances grow at the points past the vertices.
Definition fe_test.h:298
Real _hess_tol
Definition fe_test.h:292
std::string _case_name
Name of the case, can be used in the test to switch cases.
Definition fe_test.h:281
std::unique_ptr< EquationSystems > _es
Definition fe_test.h:288
std::unique_ptr< FEBase > _fe
Definition fe_test.h:289
unsigned int _nz
Definition fe_test.h:283
std::unique_ptr< Mesh > _mesh
Definition fe_test.h:287
std::vector< dof_id_type > _dof_indices
Definition fe_test.h:285
Real _grad_tol
Definition fe_test.h:292
std::unique_ptr< QGauss > _qrule
Definition fe_test.h:290
System * _sys
Definition fe_test.h:286
Elem * _elem
Definition fe_test.h:284
Real _value_tol
Definition fe_test.h:292
unsigned int _nx
Definition fe_test.h:283
Real _past_vertex_offset
The offset, as a fraction of an edge, of the points past the vertices.
Definition fe_test.h:295
void dof_indices(const Elem *const elem, std::vector< dof_id_type > &di) const
Definition dof_map.C:2231
void set_extra_datum(const unsigned int index, const T value)
Sets the value on this object of the extra datum associated with index, which should have been obtain...
dof_id_type id() const
Definition dof_object.h:833
This is the base class from which all geometric element types are derived.
Definition elem.h:96
virtual unsigned int n_vertices() const =0
const Node & node_ref(const unsigned int i) const
Definition elem.h:2659
virtual unsigned int n_nodes() const =0
static const unsigned int type_to_dim_map[INVALID_ELEM]
This array maps the integer representation of the ElemType enum to the geometric dimension of the ele...
Definition elem.h:649
virtual ElemType type() const =0
static std::unique_ptr< FEGenericBase > build(const unsigned int dim, const FEType &type)
Builds a specific finite element type.
class FEType hides (possibly multiple) FEFamily and approximation orders, thereby enabling specialize...
Definition fe_type.h:197
Order default_quadrature_order() const
Definition fe_type.h:415
A Point defines a location in LIBMESH_DIM dimensional Real space.
Definition point.h:41
Manages consistently variables, degrees of freedom, and coefficient vectors.
Definition system.h:100
void project_solution(FunctionBase< Number > *f, FunctionBase< Gradient > *g=nullptr, std::optional< ConstElemRange > active_local_range=std::nullopt, std::optional< std::vector< unsigned int > > variable_numbers=std::nullopt) const
Projects arbitrary functions onto the current solution.
const FEType & variable_type(const unsigned int i) const
Definition system.C:2776
unsigned int add_variable(std::string_view var, const FEType &type, const std::set< subdomain_id_type > *const active_subdomains=nullptr)
Adds the variable var to the list of variables for this system.
Definition system.C:1400
const DofMap & get_dof_map() const
Definition system.h:2448
static const Real rational_w
Definition fe_test.h:206
Number fe_cubic_test(const Point &p, const Parameters &, const std::string &, const std::string &)
Definition fe_test.h:137
Number rational_test(const Point &p, const Parameters &, const std::string &, const std::string &)
Definition fe_test.h:209
Gradient quadratic_test_grad(const Point &p, const Parameters &, const std::string &, const std::string &)
Definition fe_test.h:117
Number quadratic_test(const Point &p, const Parameters &, const std::string &, const std::string &)
Definition fe_test.h:104
Gradient fe_quartic_test_grad(const Point &p, const Parameters &, const std::string &, const std::string &)
Definition fe_test.h:183
Gradient linear_test_grad(const Point &, const Parameters &, const std::string &, const std::string &)
Definition fe_test.h:88
Number fe_quartic_test(const Point &p, const Parameters &, const std::string &, const std::string &)
Definition fe_test.h:170
Gradient rational_test_grad(const Point &p, const Parameters &, const std::string &, const std::string &)
Definition fe_test.h:226
Gradient fe_cubic_test_grad(const Point &p, const Parameters &, const std::string &, const std::string &)
Definition fe_test.h:150
Number linear_test(const Point &p, const Parameters &, const std::string &, const std::string &)
Definition fe_test.h:75
void build_cube(UnstructuredMesh &mesh, const unsigned int nx=0, const unsigned int ny=0, const unsigned int nz=0, const Real xmin=0., const Real xmax=1., const Real ymin=0., const Real ymax=1., const Real zmin=0., const Real zmax=1., const ElemType type=INVALID_ELEM, const bool gauss_lobatto_grid=false)
Builds a (elements) cube.
void redistribute(MeshBase &mesh, const FunctionBase< Real > &mapfunc)
Deterministically perturb the nodal locations.
RealTensorValue rotate(MeshBase &mesh, const Real phi, const Real theta=0., const Real psi=0.)
Rotates the mesh in 3D space.
void permute_elements(MeshBase &mesh)
Randomly permute the nodal ordering of each element (without twisting the element mapping).
auto index_range(const T &sizable)
Helper function that returns an IntRange<std::size_t> representing all the indices of the passed-in v...
Definition int_range.h:153
const Real pi
.
Definition libmesh.h:292
static constexpr Real TOLERANCE
uint8_t dof_id_type
Definition id_types.h:67
@ RATIONAL_BERNSTEIN
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
IntRange< T > make_range(T beg, T end)
The 2-parameter make_range() helper function returns an IntRange<T> when both input parameters are of...
Definition int_range.h:176

References FETestBase< order, family, elem_type, build_nx, CaseName >::_case_name, FETestBase< order, family, elem_type, build_nx, CaseName >::_dim, FETestBase< order, family, elem_type, build_nx, CaseName >::_dof_indices, FETestBase< order, family, elem_type, build_nx, CaseName >::_es, FETestBase< order, family, elem_type, build_nx, CaseName >::_fe, FETestBase< order, family, elem_type, build_nx, CaseName >::_mesh, FETestBase< order, family, elem_type, build_nx, CaseName >::_nx, FETestBase< order, family, elem_type, build_nx, CaseName >::_ny, FETestBase< order, family, elem_type, build_nx, CaseName >::_nz, FETestBase< order, family, elem_type, build_nx, CaseName >::_past_vertex_offset, FETestBase< order, family, elem_type, build_nx, CaseName >::_qrule, FETestBase< order, family, elem_type, build_nx, CaseName >::_sys, libMesh::System::add_variable(), libMesh::FEGenericBase< OutputType >::build(), libMesh::MeshTools::Generation::build_cube(), libMesh::C0POLYGON, libMesh::C0POLYHEDRON, libMesh::CONSTANT, libMesh::FEType::default_quadrature_order(), libMesh::DofMap::dof_indices(), libMesh::EDGE3, fe_cubic_test(), fe_cubic_test_grad(), fe_quartic_test(), fe_quartic_test_grad(), libMesh::System::get_dof_map(), libMesh::HERMITE, libMesh::DofObject::id(), libMesh::index_range(), linear_test(), linear_test_grad(), libMesh::make_range(), libMesh::Elem::n_vertices(), libMesh::Elem::node_ref(), libMesh::MeshTools::Modification::permute_elements(), libMesh::pi, libMesh::System::project_solution(), libMesh::QUAD9, quadratic_test(), quadratic_test_grad(), libMesh::RATIONAL_BERNSTEIN, rational_test(), rational_test_grad(), rational_w, libMesh::Real, libMesh::MeshTools::Modification::redistribute(), libMesh::MeshTools::Modification::rotate(), libMesh::DofObject::set_extra_datum(), libMesh::SZABAB, TestCommWorld, libMesh::TOLERANCE, libMesh::Elem::type_to_dim_map, and libMesh::System::variable_type().

Referenced by FESideTest< order, family, elem_type >::setUp().

◆ tearDown()

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
void FETestBase< order, family, elem_type, build_nx, CaseName >::tearDown ( )
inline

Definition at line 650 of file fe_test.h.

650{}

Referenced by FESideTest< order, family, elem_type >::tearDown().

◆ true_gradient()

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
static RealGradient FETestBase< order, family, elem_type, build_nx, CaseName >::true_gradient ( Point  p)
inlinestaticprotected

Definition at line 301 of file fe_test.h.

302 {
303 Parameters dummy;
304
305 Gradient true_grad;
306 RealGradient returnval;
307
308 if (family == RATIONAL_BERNSTEIN && order > 1)
309 true_grad = rational_test_grad(p, dummy, "", "");
310 else if (order > 3)
311 true_grad = fe_quartic_test_grad(p, dummy, "", "");
312 else if (FE_CAN_TEST_CUBIC)
313 true_grad = fe_cubic_test_grad(p, dummy, "", "");
314 else if (order > 1)
315 {
316 const Real & x = p(0);
317 const Real & y = (LIBMESH_DIM > 1) ? p(1) : 0;
318 const Real & z = (LIBMESH_DIM > 2) ? p(2) : 0;
319
320 true_grad = Gradient(2*x+0.125*y+0.0625*z,
321 y+0.125*x+0.03125*z,
322 0.5*z+0.0625*x+0.03125*y);
323 }
324 else
325 true_grad = Gradient(1.0, 0.25, 0.0625);
326
327 for (unsigned int d=0; d != LIBMESH_DIM; ++d)
328 {
329 CPPUNIT_ASSERT(true_grad(d) ==
330 Number(libmesh_real(true_grad(d))));
331
332 returnval(d) = libmesh_real(true_grad(d));
333 }
334
335 return returnval;
336 }
This class provides the ability to map between arbitrary, user-defined strings and several data types...
Definition parameters.h:75
This class defines a vector in LIBMESH_DIM dimensional Real or Complex space.
NumberVectorValue Gradient
LIBMESH_DEVICE_INLINE T libmesh_real(T a)

References fe_cubic_test_grad(), fe_quartic_test_grad(), libMesh::libmesh_real(), libMesh::RATIONAL_BERNSTEIN, rational_test_grad(), and libMesh::Real.

◆ true_hessian()

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
static RealTensor FETestBase< order, family, elem_type, build_nx, CaseName >::true_hessian ( Point  p)
inlinestaticprotected

Definition at line 339 of file fe_test.h.

340 {
341 const Real & x = p(0);
342 const Real & y = LIBMESH_DIM > 1 ? p(1) : 0;
343 const Real & z = LIBMESH_DIM > 2 ? p(2) : 0;
344
345 if (order > 3)
346 return RealTensor
347 { 12*x*x-12*x+2+2*z*(1-y)-2*(1-y)*(1-z), -2*x*z-(1-2*x)*(1-z)-(1-2*y)*z, 2*x*(1-y)-(1-2*x)*(1-y)-y*(1-y),
348 -2*x*z-(1-2*x)*(1-z)-(1-2*y)*z, -2*(1-x)*z, -x*x+x*(1-x)+(1-x)*(1-2*y),
349 2*x*(1-y)-(1-2*x)*(1-y)-y*(1-y), -x*x+x*(1-x)+(1-x)*(1-2*y), 12*z*z-12*z+2 };
350 else if (FE_CAN_TEST_CUBIC)
351 return RealTensor
352 { 6*x-4+2*(1-y), -2*x+z-1, y-1,
353 -2*x+z-1, -2*z, x+1-2*y,
354 y-1, x+1-2*y, 6*z-4 };
355 else if (order > 1)
356 return RealTensor
357 { 2, 0.125, 0.0625,
358 0.125, 1, 0.03125,
359 0.0625, 0.03125, 0.5 };
360
361 return RealTensor
362 { 0, 0, 0,
363 0, 0, 0,
364 0, 0, 0 };
365 }
This class defines a tensor in LIBMESH_DIM dimensional Real or Complex space.

References libMesh::Real.

Member Data Documentation

◆ _case_name

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
std::string FETestBase< order, family, elem_type, build_nx, CaseName >::_case_name
protected

Name of the case, can be used in the test to switch cases.

Definition at line 281 of file fe_test.h.

Referenced by FETestBase< order, family, elem_type, build_nx, CaseName >::setUp().

◆ _dim

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
unsigned int FETestBase< order, family, elem_type, build_nx, CaseName >::_dim
protected

◆ _dof_indices

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
std::vector<dof_id_type> FETestBase< order, family, elem_type, build_nx, CaseName >::_dof_indices
protected

◆ _elem

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
Elem* FETestBase< order, family, elem_type, build_nx, CaseName >::_elem
protected

Definition at line 284 of file fe_test.h.

◆ _es

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
std::unique_ptr<EquationSystems> FETestBase< order, family, elem_type, build_nx, CaseName >::_es
protected

◆ _fe

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
std::unique_ptr<FEBase> FETestBase< order, family, elem_type, build_nx, CaseName >::_fe
protected

◆ _grad_tol

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
Real FETestBase< order, family, elem_type, build_nx, CaseName >::_grad_tol
protected

Definition at line 292 of file fe_test.h.

◆ _hess_tol

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
Real FETestBase< order, family, elem_type, build_nx, CaseName >::_hess_tol
protected

Definition at line 292 of file fe_test.h.

◆ _mesh

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
std::unique_ptr<Mesh> FETestBase< order, family, elem_type, build_nx, CaseName >::_mesh
protected

◆ _nx

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
unsigned int FETestBase< order, family, elem_type, build_nx, CaseName >::_nx
protected

◆ _ny

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
unsigned int FETestBase< order, family, elem_type, build_nx, CaseName >::_ny
protected

◆ _nz

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
unsigned int FETestBase< order, family, elem_type, build_nx, CaseName >::_nz
protected

◆ _past_vertex_offset

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
Real FETestBase< order, family, elem_type, build_nx, CaseName >::_past_vertex_offset
protected

The offset, as a fraction of an edge, of the points past the vertices.

Definition at line 295 of file fe_test.h.

Referenced by FETestBase< order, family, elem_type, build_nx, CaseName >::setUp().

◆ _past_vertex_tol_factor

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
Real FETestBase< order, family, elem_type, build_nx, CaseName >::_past_vertex_tol_factor
protected

The factor by which the tolerances grow at the points past the vertices.

Definition at line 298 of file fe_test.h.

◆ _qrule

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
std::unique_ptr<QGauss> FETestBase< order, family, elem_type, build_nx, CaseName >::_qrule
protected

◆ _sys

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
System* FETestBase< order, family, elem_type, build_nx, CaseName >::_sys
protected

◆ _value_tol

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
Real FETestBase< order, family, elem_type, build_nx, CaseName >::_value_tol
protected

Definition at line 292 of file fe_test.h.

◆ libmesh_suite_name

template<Order order, FEFamily family, ElemType elem_type, unsigned int build_nx, typename CaseName = Default>
std::string FETestBase< order, family, elem_type, build_nx, CaseName >::libmesh_suite_name
protected

Definition at line 278 of file fe_test.h.


The documentation for this class was generated from the following file: