GRINS-0.8.0
List of all members | Public Member Functions
GRINS::GenericICHandler Class Reference

Base class for reading and handling initial conditions for physics classes. More...

#include <generic_ic_handler.h>

Inheritance diagram for GRINS::GenericICHandler:
Inheritance graph
[legend]
Collaboration diagram for GRINS::GenericICHandler:
Collaboration graph
[legend]

Public Member Functions

 GenericICHandler (const std::string &physics_name, const GetPot &input)
 
virtual ~GenericICHandler ()
 
- Public Member Functions inherited from GRINS::ICHandlingBase
 ICHandlingBase (const std::string &physics_name)
 
virtual ~ICHandlingBase ()
 
void attach_initial_func (const libMesh::FunctionBase< libMesh::Number > &initial_val)
 
virtual void read_ic_data (const GetPot &input, const std::string &id_str, const std::string &ic_str, const std::string &var_str, const std::string &value_str)
 
virtual void init_ic_data (const libMesh::FEMSystem &system, libMesh::CompositeFunction< libMesh::Number > &all_ics)
 Override this method to initialize any system-dependent data. More...
 
virtual int string_to_int (const std::string &bc_type_in) const
 
virtual void init_ic_types (const libMesh::subdomain_id_type ic_id, const std::string &ic_id_string, const int ic_type, const std::string &ic_vars_string, const std::string &ic_value_string, const GetPot &input)
 
libMesh::FunctionBase< libMesh::Number > * get_ic_func () const
 

Additional Inherited Members

- Protected Types inherited from GRINS::ICHandlingBase
enum  IC_BASE { PARSED = -2, CONSTANT }
 
- Protected Attributes inherited from GRINS::ICHandlingBase
libMesh::UniquePtr< libMesh::FunctionBase< libMesh::Number > > _ic_func
 
std::string _physics_name
 
std::vector< std::string > _subfunction_variables
 

Detailed Description

Base class for reading and handling initial conditions for physics classes.

Definition at line 43 of file generic_ic_handler.h.

Constructor & Destructor Documentation

GRINS::GenericICHandler::GenericICHandler ( const std::string &  physics_name,
const GetPot &  input 
)

Definition at line 52 of file generic_ic_handler.C.

References GRINS::ICHandlingBase::_physics_name, and GRINS::ICHandlingBase::read_ic_data().

54  : ICHandlingBase( physics_name )
55  {
56  std::string id_str = "Physics/"+_physics_name+"/ic_ids";
57  std::string bc_str = "Physics/"+_physics_name+"/ic_types";
58  std::string var_str = "Physics/"+_physics_name+"/ic_variables";
59  std::string val_str = "Physics/"+_physics_name+"/ic_values";
60 
61  this->read_ic_data( input, id_str, bc_str, var_str, val_str );
62 
63  return;
64  }
ICHandlingBase(const std::string &physics_name)
virtual void read_ic_data(const GetPot &input, const std::string &id_str, const std::string &ic_str, const std::string &var_str, const std::string &value_str)
GRINS::GenericICHandler::~GenericICHandler ( )
virtual

Definition at line 66 of file generic_ic_handler.C.

67  {
68  return;
69  }

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

Generated on Tue Dec 19 2017 12:47:30 for GRINS-0.8.0 by  doxygen 1.8.9.1