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
Public Member Functions | Public Attributes | List of all members
TestAlgorithm Class Referenceabstract

#include <UnitTestAlgorithm.h>

Inheritance diagram for TestAlgorithm:
TestTurbulenceAlgorithm

Public Member Functions

 TestAlgorithm ()
 
virtual ~TestAlgorithm ()
 
sierra::nalu::Realmcreate_realm (const YAML::Node &realm_node, const std::string realm_type="multi_physics")
 
sierra::nalu::Realmcreate_realm (const std::string realm_type="multi_physics")
 
void fill_mesh (const std::string mesh_spec="generated:10x10x10")
 
virtual void declare_fields ()=0
 
sierra::nalu::Realmrealm () const
 
stk::mesh::MetaData & meta () const
 
stk::mesh::BulkData & bulk () const
 
double field_norm (const ScalarFieldType &field, stk::mesh::Selector *selector=nullptr)
 

Public Attributes

std::unique_ptr< unit_test_utils::NaluTestnaluObj_
 Reference to test Nalu instance used to hold Simulation and Realm. More...
 
sierra::nalu::Realmrealm_ {nullptr}
 Reference to realm instance. More...
 
stk::mesh::Part * meshPart_ {nullptr}
 
const VectorFieldTypecoordinates_ {nullptr}
 
stk::ParallelMachine comm_
 

Constructor & Destructor Documentation

TestAlgorithm::TestAlgorithm ( )
inline
virtual TestAlgorithm::~TestAlgorithm ( )
inlinevirtual

Member Function Documentation

stk::mesh::BulkData& TestAlgorithm::bulk ( ) const
inline
sierra::nalu::Realm& TestAlgorithm::create_realm ( const YAML::Node realm_node,
const std::string  realm_type = "multi_physics" 
)
inline

References naluObj_, and realm_.

sierra::nalu::Realm& TestAlgorithm::create_realm ( const std::string  realm_type = "multi_physics")
inline
virtual void TestAlgorithm::declare_fields ( )
pure virtual
double TestAlgorithm::field_norm ( const ScalarFieldType field,
stk::mesh::Selector *  selector = nullptr 
)

References bulk(), unit_test_utils::field_norm(), and meta().

Referenced by bulk().

void TestAlgorithm::fill_mesh ( const std::string  mesh_spec = "generated:10x10x10")
stk::mesh::MetaData& TestAlgorithm::meta ( ) const
inline
sierra::nalu::Realm& TestAlgorithm::realm ( ) const
inline

References realm_.

Referenced by bulk(), and meta().

Member Data Documentation

stk::ParallelMachine TestAlgorithm::comm_
const VectorFieldType* TestAlgorithm::coordinates_ {nullptr}
stk::mesh::Part* TestAlgorithm::meshPart_ {nullptr}

Referenced by fill_mesh().

std::unique_ptr<unit_test_utils::NaluTest> TestAlgorithm::naluObj_

Reference to test Nalu instance used to hold Simulation and Realm.

Referenced by create_realm(), and TestAlgorithm().

sierra::nalu::Realm* TestAlgorithm::realm_ {nullptr}

Reference to realm instance.

Referenced by create_realm(), and realm().


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