MoCSI API Reference
Loading...
Searching...
No Matches
Functions
BoundaryConditionRegistry.h File Reference
#include <memory>
#include <string>
#include "BCConstantHeatFlux.h"
#include "BCSinusoidalTemperature.h"
#include "BCTopSurfaceEnergyBalance.h"
#include "GenericBoundaryCondition.h"
#include "SimulationClassBase.h"
Include dependency graph for BoundaryConditionRegistry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
std::unique_ptr< GenericBoundaryCondition< T > > createBoundaryCondition (std::string_view key, SimulationClassBase< T > *sim, std::vector< int > boundary_points, std::vector< std::vector< int > > connected_points, int facet_nr, T area, std::string face_prefix)
 Registry function for the boundary conditions.
 

Function Documentation

◆ createBoundaryCondition()

template<typename T >
std::unique_ptr< GenericBoundaryCondition< T > > createBoundaryCondition ( std::string_view  key,
SimulationClassBase< T > *  sim,
std::vector< int boundary_points,
std::vector< std::vector< int > >  connected_points,
int  facet_nr,
T  area,
std::string  face_prefix 
)

Registry function for the boundary conditions.

Parameters
keyThe name of the boundary condition to create.
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.
Returns
Unique_ptr to a boundary condition object of specified type or nullptr if that type doesn't exist.