MoCSI API Reference
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
HeatConductivityTwoLayers< T > Class Template Reference

#include <HeatConductivityTwoLayers.h>

Inheritance diagram for HeatConductivityTwoLayers< T >:
Inheritance graph
Collaboration diagram for HeatConductivityTwoLayers< T >:
Collaboration graph

Public Member Functions

 HeatConductivityTwoLayers (SimulationClassBase< T > *sim)
 
bool setup (std::vector< std::shared_ptr< GenericSubmodule< T > > > all_submodules) override
 
bool exec (std::string_view param) override
 
bool init () override
 
bool preTimeStep () override
 
bool postTimeStep () override
 
bool output () override
 
void calculateHeatConductivity ()
 
bool floatingCompare (T f1, T f2, T epsilon)
 Equals comparison for two floating point numbers.
 
void calculateTransitionRegion ()
 Calculates the node after which the layer changes.
 
void setFieldPtr (std::shared_ptr< std::valarray< T > > field_ptr) override
 
std::string_view getNameLocal () const override
 
std::vector< std::string > getDependencies () const override
 
- Public Member Functions inherited from GenericSubmodule< T >
 GenericSubmodule ()
 Constructor without arguments. Will be employed when using the static modules registry.
 
virtual ~GenericSubmodule ()=default
 
 GenericSubmodule (const SimulationClassBase< T > *l_sim)
 Constructor to be preferably used when a module is created during runtime.
 
virtual bool postNonLinIter ()
 
std::vector< std::string > getSubmoduleList () const
 
bool isSetUp ()
 
void submodulesSetUp ()
 
void setSimPointer (SimulationClassBase< T > *sim)
 Setter function for the sim pointer. As the module is usually registered during static initialization when the sim class is not yet existing, this function is needed to set the pointer.
 
void setSubmodules (std::vector< std::shared_ptr< GenericSubmodule< T > > > all_submodules)
 Sets all the submodules of this module into their corresponding chains. Also sets their field-pointers to the field pointer of the managing module as a way to communicate between submodules.
 
void writeToGlobalIniContent (std::ofstream &global_stream)
 Function that writes the local ini file contents to the global ini file stream. "Tags" the keys with the name of the module in the format "module_name$key".
 
void overwriteLocalIniContent (const std::unordered_map< std::string, std::any > &global_ini_content)
 Writes the (already trimmed to the local content) data from the global ini file to the local ini file. This only overwrites the internal data and not the file contents itself.
 

Static Public Member Functions

static std::shared_ptr< GenericSubmodule< T > > createMethode (SimulationClassBase< T > *sim)
 
static std::string getName ()
 

Additional Inherited Members

- Protected Attributes inherited from GenericSubmodule< T >
ChainManager< GenericSubmodule< T > > sub_module_chain
 
std::shared_ptr< std::valarray< T > > module_field
 
const SimulationClassBase< T > * sim {}
 
std::vector< std::string > m_generic_submodules
 
InputManager ini_file_data
 
bool in_snapshot {false}
 
bool in_output {false}
 
char field_id
 
bool is_set_up {false}
 

Constructor & Destructor Documentation

◆ HeatConductivityTwoLayers()

Member Function Documentation

◆ calculateHeatConductivity()

template<typename T >
void HeatConductivityTwoLayers< T >::calculateHeatConductivity ( )

◆ calculateTransitionRegion()

template<typename T >
void HeatConductivityTwoLayers< T >::calculateTransitionRegion ( )

Calculates the node after which the layer changes.

Template Parameters
T

◆ createMethode()

template<typename T >
static std::shared_ptr< GenericSubmodule< T > > HeatConductivityTwoLayers< T >::createMethode ( SimulationClassBase< T > *  sim)
inlinestatic

◆ exec()

template<typename T >
bool HeatConductivityTwoLayers< T >::exec ( std::string_view  param)
overridevirtual

Implements GenericSubmodule< T >.

◆ floatingCompare()

template<typename T >
bool HeatConductivityTwoLayers< T >::floatingCompare ( T  f1,
T  f2,
T  epsilon 
)

Equals comparison for two floating point numbers.

Template Parameters
T
Parameters
f1The first floating point number.
f2The second floating point number.
epsilonThe allowed difference between the two (it functions as both an absolute and relative value)
Returns
true
false

◆ getDependencies()

template<typename T >
std::vector< std::string > HeatConductivityTwoLayers< T >::getDependencies ( ) const
inlineoverridevirtual

Reimplemented from GenericSubmodule< T >.

◆ getName()

template<typename T >
static std::string HeatConductivityTwoLayers< T >::getName ( )
inlinestatic

◆ getNameLocal()

template<typename T >
std::string_view HeatConductivityTwoLayers< T >::getNameLocal ( ) const
inlineoverridevirtual

Implements GenericSubmodule< T >.

◆ init()

template<typename T >
bool HeatConductivityTwoLayers< T >::init ( )
overridevirtual

Reimplemented from GenericSubmodule< T >.

◆ output()

template<typename T >
bool HeatConductivityTwoLayers< T >::output ( )
overridevirtual

Reimplemented from GenericSubmodule< T >.

◆ postTimeStep()

template<typename T >
bool HeatConductivityTwoLayers< T >::postTimeStep ( )
overridevirtual

Reimplemented from GenericSubmodule< T >.

◆ preTimeStep()

template<typename T >
bool HeatConductivityTwoLayers< T >::preTimeStep ( )
overridevirtual

Reimplemented from GenericSubmodule< T >.

◆ setFieldPtr()

template<typename T >
void HeatConductivityTwoLayers< T >::setFieldPtr ( std::shared_ptr< std::valarray< T > >  field_ptr)
inlineoverridevirtual

Reimplemented from GenericSubmodule< T >.

◆ setup()

template<typename T >
bool HeatConductivityTwoLayers< T >::setup ( std::vector< std::shared_ptr< GenericSubmodule< T > > >  all_submodules)
overridevirtual

Reimplemented from GenericSubmodule< T >.


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