![]() |
PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
User-input data for particle neighbor search. More...
#include <bcBaseDeck.h>
Public Member Functions | |
| BCBaseDeck (const json &j=json({}), std::string type="Force_BC") | |
| Constructor. | |
| BCBaseDeck (bool isRegionActive, geom::GeomData regionGeomData=geom::GeomData(), std::vector< size_t > pList=std::vector< size_t >(), std::vector< size_t > pNotList=std::vector< size_t >(), std::string timeFnType="", std::vector< double > timeFnParams=std::vector< double >(), std::string spatialFnType="", std::vector< double > spatialFnParams=std::vector< double >(), std::vector< size_t > direction=std::vector< size_t >(), bool isDisplacementZero=false) | |
| Constructor. | |
| void | readFromJson (const json &j, std::string type) |
| Reads from json object. | |
| std::string | printStr (int nt=0, int lvl=0) const |
| Returns the string containing printable information about the object. | |
| void | print (int nt=0, int lvl=0) const |
| Prints the information about the object. | |
Static Public Member Functions | |
| static json | getExampleJson (std::string type="Foce_BC", bool isRegionActive=false, geom::GeomData regionGeomData=geom::GeomData(), std::vector< size_t > pList=std::vector< size_t >(), std::vector< size_t > pNotList=std::vector< size_t >(), std::string timeFnType="", std::vector< double > timeFnParams=std::vector< double >(), std::string spatialFnType="", std::vector< double > spatialFnParams=std::vector< double >(), std::vector< size_t > direction=std::vector< size_t >(), bool isDisplacementZero=false, std::string icType="", std::vector< double > icVec=std::vector< double >()) |
| Returns example JSON object for ModelDeck configuration. | |
Data Fields | |
| std::string | d_type |
| Method for applying force. E.g., Force_BC, Displacement_BC, IC. | |
| std::string | d_selectionType |
| Method for applying force e.g. | |
| bool | d_isRegionActive |
| Flag that indicates if region-based application of boundary condition is active. So cases of 'region', 'region_with_include_list', 'region_with_exclude_list', and 'region_with_include_list_with_exclude_list' will have region-based application of boundary condition. | |
| geom::GeomData | d_regionGeomData |
| Region geometry (if any) | |
| std::vector< size_t > | d_pList |
| List of particles (if any) | |
| std::vector< size_t > | d_pNotList |
| List of particles to not include (if any) | |
| std::string | d_timeFnType |
| Name of the formula with respect to time. | |
| std::string | d_spatialFnType |
| Name of the formula of with respect to spatial coordinate. | |
| std::vector< size_t > | d_direction |
| List of dofs on which this bc will be applied. | |
| std::vector< double > | d_timeFnParams |
| List of parameters for function wrt time. | |
| std::vector< double > | d_spatialFnParams |
| List of parameters for function wrt spatial coordinate. | |
| bool | d_isDisplacementZero |
| Specify if this bc corresponds to zero displacement condition. | |
| std::string | d_icType |
| Type. | |
| util::Point | d_icVec |
| Initial velocity vector. | |
User-input data for particle neighbor search.
Definition at line 25 of file bcBaseDeck.h.
Constructor.
Definition at line 109 of file bcBaseDeck.h.
|
inline |
Constructor.
Definition at line 117 of file bcBaseDeck.h.
References geom::createGeomObject(), d_isRegionActive, d_pList, d_pNotList, d_regionGeomData, and d_selectionType.
|
inlinestatic |
Returns example JSON object for ModelDeck configuration.
Definition at line 157 of file bcBaseDeck.h.
References geom::writeGeometry().
Referenced by anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), and getInputJson().
|
inline |
Prints the information about the object.
| nt | Number of tabs to append before printing |
| lvl | Information level (higher means more information) |
Definition at line 324 of file bcBaseDeck.h.
References printStr().
|
inline |
Returns the string containing printable information about the object.
| nt | Number of tabs to append before printing |
| lvl | Information level (higher means more information) |
Definition at line 287 of file bcBaseDeck.h.
References d_direction, geom::GeomData::d_geom_p, d_isDisplacementZero, d_isRegionActive, d_pList, d_pNotList, d_regionGeomData, d_selectionType, d_spatialFnParams, d_spatialFnType, d_timeFnParams, d_timeFnType, util::io::getTabS(), and geom::GeomData::printStr().
Referenced by print().
|
inline |
Reads from json object.
Definition at line 217 of file bcBaseDeck.h.
References geom::createGeomObject(), d_direction, d_icType, d_icVec, d_isDisplacementZero, d_isRegionActive, d_pList, d_pNotList, d_regionGeomData, d_selectionType, d_spatialFnParams, d_spatialFnType, d_timeFnParams, d_timeFnType, and geom::readGeometry().
Referenced by inp::BCDeck::readFromJson().
| std::vector<size_t> inp::BCBaseDeck::d_direction |
List of dofs on which this bc will be applied.
E.g. if bc is only applied on x-component, d_direction will be 1. If bc is applied on x- and y-component, d_direction will be vector with elements 1 and 2.
Definition at line 89 of file bcBaseDeck.h.
Referenced by printStr(), and readFromJson().
| std::string inp::BCBaseDeck::d_icType |
| util::Point inp::BCBaseDeck::d_icVec |
| bool inp::BCBaseDeck::d_isDisplacementZero |
Specify if this bc corresponds to zero displacement condition.
Definition at line 98 of file bcBaseDeck.h.
Referenced by printStr(), and readFromJson().
| bool inp::BCBaseDeck::d_isRegionActive |
Flag that indicates if region-based application of boundary condition is active. So cases of 'region', 'region_with_include_list', 'region_with_exclude_list', and 'region_with_include_list_with_exclude_list' will have region-based application of boundary condition.
Definition at line 45 of file bcBaseDeck.h.
Referenced by BCBaseDeck(), loading::needToComputeDof(), printStr(), and readFromJson().
| std::vector<size_t> inp::BCBaseDeck::d_pList |
List of particles (if any)
Definition at line 51 of file bcBaseDeck.h.
Referenced by BCBaseDeck(), loading::needToComputeDof(), loading::needToProcessParticle(), printStr(), and readFromJson().
| std::vector<size_t> inp::BCBaseDeck::d_pNotList |
List of particles to not include (if any)
Definition at line 54 of file bcBaseDeck.h.
Referenced by BCBaseDeck(), loading::needToComputeDof(), loading::needToProcessParticle(), printStr(), and readFromJson().
| geom::GeomData inp::BCBaseDeck::d_regionGeomData |
Region geometry (if any)
Definition at line 48 of file bcBaseDeck.h.
Referenced by BCBaseDeck(), loading::needToComputeDof(), printStr(), and readFromJson().
| std::string inp::BCBaseDeck::d_selectionType |
Method for applying force e.g.
Definition at line 38 of file bcBaseDeck.h.
Referenced by BCBaseDeck(), loading::needToComputeDof(), loading::needToProcessParticle(), printStr(), and readFromJson().
| std::vector<double> inp::BCBaseDeck::d_spatialFnParams |
List of parameters for function wrt spatial coordinate.
Definition at line 95 of file bcBaseDeck.h.
Referenced by printStr(), and readFromJson().
| std::string inp::BCBaseDeck::d_spatialFnType |
Name of the formula of with respect to spatial coordinate.
List of allowed values are:
Definition at line 80 of file bcBaseDeck.h.
Referenced by printStr(), and readFromJson().
| std::vector<double> inp::BCBaseDeck::d_timeFnParams |
List of parameters for function wrt time.
Definition at line 92 of file bcBaseDeck.h.
Referenced by printStr(), and readFromJson().
| std::string inp::BCBaseDeck::d_timeFnType |
Name of the formula with respect to time.
List of allowed values are:
Definition at line 67 of file bcBaseDeck.h.
Referenced by printStr(), and readFromJson().
| std::string inp::BCBaseDeck::d_type |
Method for applying force. E.g., Force_BC, Displacement_BC, IC.
Definition at line 27 of file bcBaseDeck.h.