Nalu
Nalu: a generalized unstructured massively parallel low Mach flow code designed to support a variety of energy applications of interest (most notably Wind ECP) built on the Sierra Toolkit and Trilinos solver Tpetra/Epetra stack. The open source BSD, clause 3 license model has been chosen for the code base. See LICENSE for more information. http://NaluCFD.org
Classes | Namespaces | Macros | Typedefs | Functions
UnitTestMasterElements.C File Reference
#include <gtest/gtest.h>
#include <limits>
#include <stk_util/parallel/Parallel.hpp>
#include <stk_mesh/base/MetaData.hpp>
#include <stk_mesh/base/BulkData.hpp>
#include <stk_mesh/base/Bucket.hpp>
#include <stk_mesh/base/CoordinateSystems.hpp>
#include <stk_mesh/base/FieldBase.hpp>
#include <stk_mesh/base/Field.hpp>
#include <stk_mesh/base/GetEntities.hpp>
#include <master_element/MasterElement.h>
#include <memory>
#include <random>
#include "UnitTestUtils.h"

Classes

class  MasterElement
 

Namespaces

 anonymous_namespace{UnitTestMasterElements.C}
 

Macros

#define TEST_F_ALL_TOPOS_NO_PYR(x, y)
 
#define TEST_F_ALL_TOPOS(x, y)
 
#define TEST_F_ALL_P1_TOPOS(x, y)
 

Typedefs

using anonymous_namespace{UnitTestMasterElements.C}::VectorFieldType = stk::mesh::Field< double, stk::mesh::Cartesian >
 

Functions

double anonymous_namespace{UnitTestMasterElements.C}::linear_scalar_value (int dim, double a, const double *b, const double *x)
 
void anonymous_namespace{UnitTestMasterElements.C}::check_interpolation_at_ips (const stk::mesh::Entity *node_rels, const VectorFieldType &coordField, sierra::nalu::MasterElement &me)
 
void anonymous_namespace{UnitTestMasterElements.C}::check_derivatives_at_ips (const stk::mesh::Entity *node_rels, const VectorFieldType &coordField, sierra::nalu::MasterElement &me)
 
void anonymous_namespace{UnitTestMasterElements.C}::check_scv_shifted_ips_are_nodal (const stk::mesh::Entity *node_rels, const VectorFieldType &coordField, sierra::nalu::MasterElement &meSV)
 
void anonymous_namespace{UnitTestMasterElements.C}::check_exposed_face_shifted_ips_are_nodal (const stk::mesh::Entity *node_rels, const VectorFieldType &coordField, sierra::nalu::MasterElement &meSS)
 
void anonymous_namespace{UnitTestMasterElements.C}::check_is_in_element (const stk::mesh::Entity *node_rels, const VectorFieldType &coordField, sierra::nalu::MasterElement &me)
 
void anonymous_namespace{UnitTestMasterElements.C}::check_is_not_in_element (const stk::mesh::Entity *node_rels, const VectorFieldType &coordField, sierra::nalu::MasterElement &me)
 
void anonymous_namespace{UnitTestMasterElements.C}::check_particle_interp (const stk::mesh::Entity *node_rels, const VectorFieldType &coordField, sierra::nalu::MasterElement &me)
 
 TEST_F_ALL_TOPOS_NO_PYR (MasterElement, scs_interpolation)
 
 TEST_F_ALL_TOPOS_NO_PYR (MasterElement, scs_derivative)
 
 TEST_F_ALL_TOPOS_NO_PYR (MasterElement, scv_interpolation)
 
 TEST_F_ALL_TOPOS_NO_PYR (MasterElement, is_in_element)
 
 TEST_F_ALL_P1_TOPOS (MasterElement, scv_shifted_ips_are_nodal)
 
 TEST_F_ALL_P1_TOPOS (MasterElement, exposed_face_shifted_ips_are_nodal)
 
 TEST_F_ALL_TOPOS (MasterElement, is_not_in_element)
 
 TEST_F_ALL_TOPOS (MasterElement, particle_interpolation)
 

Macro Definition Documentation

#define TEST_F_ALL_P1_TOPOS (   x,
 
)
Value:
TEST_F(x, tri##_##y) { y(stk::topology::TRI_3_2D); } \
TEST_F(x, quad4##_##y) { y(stk::topology::QUAD_4_2D); } \
TEST_F(x, tet##_##y) { y(stk::topology::TET_4); } \
TEST_F(x, wedge##_##y) { y(stk::topology::WEDGE_6); } \
TEST_F(x, pyr##_##y) { y(stk::topology::PYRAMID_5); } \
TEST_F(x, hex8##_##y) { y(stk::topology::HEX_8); }
TEST_F(TestTurbulenceAlgorithm, turbviscksgsalgorithm)
Definition: UnitTestLESAlgorithms.C:18
#define TEST_F_ALL_TOPOS (   x,
 
)
Value:
TEST_F(x, tri##_##y) { y(stk::topology::TRI_3_2D); } \
TEST_F(x, quad4##_##y) { y(stk::topology::QUAD_4_2D); } \
TEST_F(x, quad9##_##y) { y(stk::topology::QUAD_9_2D); } \
TEST_F(x, tet##_##y) { y(stk::topology::TET_4); } \
TEST_F(x, pyr##_##y) { y(stk::topology::PYRAMID_5); } \
TEST_F(x, wedge##_##y) { y(stk::topology::WEDGE_6); } \
TEST_F(x, hex8##_##y) { y(stk::topology::HEX_8); } \
TEST_F(x, hex27##_##y) { y(stk::topology::HEX_27); }
TEST_F(TestTurbulenceAlgorithm, turbviscksgsalgorithm)
Definition: UnitTestLESAlgorithms.C:18
#define TEST_F_ALL_TOPOS_NO_PYR (   x,
 
)
Value:
TEST_F(x, tri##_##y) { y(stk::topology::TRI_3_2D); } \
TEST_F(x, quad4##_##y) { y(stk::topology::QUAD_4_2D); } \
TEST_F(x, quad9##_##y) { y(stk::topology::QUAD_9_2D); } \
TEST_F(x, tet##_##y) { y(stk::topology::TET_4); } \
TEST_F(x, wedge##_##y) { y(stk::topology::WEDGE_6); } \
TEST_F(x, hex8##_##y) { y(stk::topology::HEX_8); } \
TEST_F(x, hex27##_##y) { y(stk::topology::HEX_27); }
TEST_F(TestTurbulenceAlgorithm, turbviscksgsalgorithm)
Definition: UnitTestLESAlgorithms.C:18

Function Documentation

TEST_F_ALL_P1_TOPOS ( MasterElement  ,
scv_shifted_ips_are_nodal   
)
TEST_F_ALL_P1_TOPOS ( MasterElement  ,
exposed_face_shifted_ips_are_nodal   
)
TEST_F_ALL_TOPOS ( MasterElement  ,
is_not_in_element   
)
TEST_F_ALL_TOPOS ( MasterElement  ,
particle_interpolation   
)
TEST_F_ALL_TOPOS_NO_PYR ( MasterElement  ,
scs_interpolation   
)
TEST_F_ALL_TOPOS_NO_PYR ( MasterElement  ,
scs_derivative   
)
TEST_F_ALL_TOPOS_NO_PYR ( MasterElement  ,
scv_interpolation   
)
TEST_F_ALL_TOPOS_NO_PYR ( MasterElement  ,
is_in_element   
)