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

Concrete implementation of a constant heat flux boundary condition in 1D. More...

#include <BCConstantHeatFlux.h>

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

Public Member Functions

void writeBoundaryCondition () override
 Actual implementation of the boundary condition.
 
 BCConstantHeatFlux (SimulationClassBase< T > *sim, std::vector< int > boundary_points, std::vector< std::vector< int > > connected_points, int facet_nr, T area, std::string face_prefix)
 Constructor for a BCConstantHeatFlux object.
 
 ~BCConstantHeatFlux () override=default
 
- Public Member Functions inherited from GenericBoundaryCondition< T >
void registerElementsCsr (GenericMatrix< T > &capacitance_matrix, GenericMatrix< T > &stiffness_matrix)
 
virtual void getReferenceToElements (GenericMatrix< T > &capacitance_matrix, GenericMatrix< T > &stiffness_matrix, std::valarray< T > &forcing_vector)
 Sets up a referrence_wrapper vector to the elements within the matrix object. This adds a bit of pre-calculation overhead, but always allows const time element access even for matrix object that don't normally have const time random access. This of course assumes a static grid.
 
 GenericBoundaryCondition (SimulationClassBase< T > *sim, std::vector< int > boundary_points, std::vector< std::vector< int > > connected_points, int facet_nr, std::string face_prefix)
 Constructor for a GenericElement object. Sets all parameters that are known at creation.
 
virtual ~GenericBoundaryCondition ()=default
 

Additional Inherited Members

- Protected Attributes inherited from GenericBoundaryCondition< T >
SimulationClassBase< T > * m_sim
 
std::vector< intm_boundary_points
 
std::vector< std::vector< int > > m_connected_points
 
std::vector< std::vector< std::reference_wrapper< T > > > m_capacitance_matrix_elements {}
 
std::vector< std::vector< std::reference_wrapper< T > > > m_stiffness_matrix_elements {}
 
std::vector< std::reference_wrapper< T > > m_forcing_vector_elements {}
 
int m_facet_number {-1}
 
std::string m_face_indicator_prefix
 

Detailed Description

template<typename T>
class BCConstantHeatFlux< T >

Concrete implementation of a constant heat flux boundary condition in 1D.

Constructor & Destructor Documentation

◆ BCConstantHeatFlux()

template<typename T >
BCConstantHeatFlux< T >::BCConstantHeatFlux ( SimulationClassBase< T > *  sim,
std::vector< int boundary_points,
std::vector< std::vector< int > >  connected_points,
int  facet_nr,
T  area,
std::string  face_prefix 
)

Constructor for a BCConstantHeatFlux object.

Parameters
simThe pointer to the sim class.
boundary_pointsVector denoting which of the nodes have that specific boundary condition.
connected_pointsVector of vectors denoting which points are connected to the correcsponding boundary point nodes.
facet_nrDesignation which facet this boundary condition belongs to, to allow mapping it to a shape model.
areaArea of the boundary side.

◆ ~BCConstantHeatFlux()

template<typename T >
BCConstantHeatFlux< T >::~BCConstantHeatFlux ( )
overridedefault

Member Function Documentation

◆ writeBoundaryCondition()

template<typename T >
void BCConstantHeatFlux< T >::writeBoundaryCondition ( )
overridevirtual

Actual implementation of the boundary condition.

Implements GenericBoundaryCondition< T >.


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