KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
This class aims to manage meshes for multi-physics simulations. More...
#include <model_part.h>
Public Types | |
Enum's | |
enum | OwnershipType { Kratos_All , Kratos_Local , Kratos_Ghost , Kratos_Ownership_Size } |
Type Definitions | |
typedef std::size_t | IndexType |
Pointer definition of ModelPart. More... | |
typedef std::size_t | SizeType |
typedef Dof< double > | DofType |
typedef std::vector< DofType::Pointer > | DofsVectorType |
typedef Variable< double > | DoubleVariableType |
typedef Matrix | MatrixType |
typedef Vector | VectorType |
typedef PointerVectorSet< DofType > | DofsArrayType |
typedef Node | NodeType |
typedef Geometry< NodeType > | GeometryType |
typedef Properties | PropertiesType |
typedef Element | ElementType |
typedef Condition | ConditionType |
typedef Mesh< NodeType, PropertiesType, ElementType, ConditionType > | MeshType |
typedef PointerVector< MeshType > | MeshesContainerType |
typedef MeshType::NodesContainerType | NodesContainerType |
Nodes container. Which is a vector set of nodes with their Id's as key. More... | |
typedef MeshType::NodeIterator | NodeIterator |
typedef MeshType::NodeConstantIterator | NodeConstantIterator |
typedef MeshType::PropertiesContainerType | PropertiesContainerType |
Properties container. Which is a vector set of Properties with their Id's as key. More... | |
typedef MeshType::PropertiesIterator | PropertiesIterator |
typedef MeshType::PropertiesConstantIterator | PropertiesConstantIterator |
typedef MeshType::ElementsContainerType | ElementsContainerType |
Element container. A vector set of Elements with their Id's as key. More... | |
typedef MeshType::ElementIterator | ElementIterator |
typedef MeshType::ElementConstantIterator | ElementConstantIterator |
typedef MeshType::ConditionsContainerType | ConditionsContainerType |
Condintions container. A vector set of Conditions with their Id's as key. More... | |
typedef MeshType::ConditionIterator | ConditionIterator |
typedef MeshType::ConditionConstantIterator | ConditionConstantIterator |
typedef Table< double, double > | TableType |
Defining a table with double argument and result type as table type. More... | |
typedef PointerVectorMap< SizeType, TableType > | TablesContainerType |
The container of the tables. A vector map of the tables. More... | |
typedef TablesContainerType::iterator | TableIterator |
typedef TablesContainerType::const_iterator | TableConstantIterator |
typedef MeshType::MasterSlaveConstraintType | MasterSlaveConstraintType |
The container of the constraints. More... | |
typedef MeshType::MasterSlaveConstraintContainerType | MasterSlaveConstraintContainerType |
typedef MeshType::MasterSlaveConstraintIteratorType | MasterSlaveConstraintIteratorType |
typedef MeshType::MasterSlaveConstraintConstantIteratorType | MasterSlaveConstraintConstantIteratorType |
typedef GeometryContainer< GeometryType > | GeometryContainerType |
The Geometry Container. More... | |
typedef GeometryContainerType::GeometryIterator | GeometryIterator |
Geometry Iterator. More... | |
typedef GeometryContainerType::GeometryConstantIterator | GeometryConstantIterator |
Const Geometry Iterator. More... | |
typedef GeometryContainerType::GeometriesMapType | GeometriesMapType |
Geometry Hash Map Container. Stores with hash of Ids to corresponding geometries. More... | |
typedef PointerHashMapSet< ModelPart, std::hash< std::string >, GetModelPartName, Kratos::shared_ptr< ModelPart > > | SubModelPartsContainerType |
The container of the sub model parts. A hash table is used. More... | |
typedef SubModelPartsContainerType::iterator | SubModelPartIterator |
Iterator over the sub model parts of this model part. More... | |
typedef SubModelPartsContainerType::const_iterator | SubModelPartConstantIterator |
Constant iterator over the sub model parts of this model part. More... | |
Public Types inherited from Kratos::DataValueContainer | |
using | ValueType = std::pair< const VariableData *, void * > |
Type of the container used for variables. More... | |
using | ContainerType = std::vector< ValueType > |
Type of the container used for variables. More... | |
using | iterator = ContainerType::iterator |
Type of the container used for variables. More... | |
using | const_iterator = ContainerType::const_iterator |
Type of the container used for variables. More... | |
using | SizeType = ContainerType::size_type |
Type of the container used for variables. More... | |
Public Types inherited from Kratos::Flags | |
enum | FlagsList { Flag0 = BlockType(1) , Flag1 = BlockType(1) << 1 , Flag2 = BlockType(1) << 2 , Flag3 = BlockType(1) << 3 , Flag4 = BlockType(1) << 4 , Flag5 = BlockType(1) << 5 , Flag6 = BlockType(1) << 6 , Flag7 = BlockType(1) << 7 , Flag8 = BlockType(1) << 8 , Flag9 = BlockType(1) << 9 , Flag10 = BlockType(1) << 10 , Flag11 = BlockType(1) << 11 , Flag12 = BlockType(1) << 12 , Flag13 = BlockType(1) << 13 , Flag14 = BlockType(1) << 14 , Flag15 = BlockType(1) << 15 , Flag16 = BlockType(1) << 16 , Flag17 = BlockType(1) << 17 , Flag18 = BlockType(1) << 18 , Flag19 = BlockType(1) << 19 , Flag20 = BlockType(1) << 20 , Flag21 = BlockType(1) << 21 , Flag22 = BlockType(1) << 22 , Flag23 = BlockType(1) << 23 , Flag24 = BlockType(1) << 24 , Flag25 = BlockType(1) << 25 , Flag26 = BlockType(1) << 26 , Flag27 = BlockType(1) << 27 , Flag28 = BlockType(1) << 28 , Flag29 = BlockType(1) << 29 , Flag30 = BlockType(1) << 30 } |
typedef int64_t | BlockType |
typedef int64_t | FlagType |
typedef std::size_t | IndexType |
Public Member Functions | |
Flags | |
KRATOS_DEFINE_LOCAL_FLAG (ALL_ENTITIES) | |
KRATOS_DEFINE_LOCAL_FLAG (OVERWRITE_ENTITIES) | |
Life Cycle | |
~ModelPart () override | |
Destructor. More... | |
Operators | |
ModelPart & | operator= (ModelPart const &rOther)=delete |
Assignment operator. More... | |
void | Clear () |
void | Reset () |
Solution Steps | |
IndexType | CreateSolutionStep () |
IndexType | CloneSolutionStep () |
IndexType | CloneTimeStep () |
IndexType | CreateTimeStep (double NewTime) |
IndexType | CloneTimeStep (double NewTime) |
void | OverwriteSolutionStepData (IndexType SourceSolutionStepIndex, IndexType DestinationSourceSolutionStepIndex) |
Model & | GetModel () |
const Model & | GetModel () const |
void | ReduceTimeStep (ModelPart &rModelPart, double NewTime) |
Nodes | |
SizeType | NumberOfNodes (IndexType ThisIndex=0) const |
void | AddNode (NodeType::Pointer pNewNode, IndexType ThisIndex=0) |
void | AddNodes (std::vector< IndexType > const &NodeIds, IndexType ThisIndex=0) |
template<class TIteratorType > | |
void | AddNodes (TIteratorType nodes_begin, TIteratorType nodes_end, IndexType ThisIndex=0) |
NodeType::Pointer | CreateNewNode (int Id, double x, double y, double z, VariablesList::Pointer pNewVariablesList, IndexType ThisIndex=0) |
NodeType::Pointer | CreateNewNode (IndexType Id, double x, double y, double z, IndexType ThisIndex=0) |
NodeType::Pointer | CreateNewNode (IndexType Id, double x, double y, double z, double *pThisData, IndexType ThisIndex=0) |
NodeType::Pointer | CreateNewNode (IndexType NodeId, NodeType const &rSourceNode, IndexType ThisIndex=0) |
void | AssignNode (NodeType::Pointer pThisNode, IndexType ThisIndex=0) |
bool | HasNode (IndexType NodeId, IndexType ThisIndex=0) const |
NodeType::Pointer | pGetNode (IndexType NodeId, IndexType ThisIndex=0) |
const NodeType::Pointer | pGetNode (const IndexType NodeId, const IndexType ThisIndex=0) const |
NodeType & | GetNode (IndexType NodeId, IndexType ThisIndex=0) |
const NodeType & | GetNode (IndexType NodeId, IndexType ThisIndex=0) const |
void | RemoveNode (IndexType NodeId, IndexType ThisIndex=0) |
void | RemoveNode (NodeType &ThisNode, IndexType ThisIndex=0) |
void | RemoveNode (NodeType::Pointer pThisNode, IndexType ThisIndex=0) |
void | RemoveNodeFromAllLevels (IndexType NodeId, IndexType ThisIndex=0) |
void | RemoveNodeFromAllLevels (NodeType &ThisNode, IndexType ThisIndex=0) |
void | RemoveNodeFromAllLevels (NodeType::Pointer pThisNode, IndexType ThisIndex=0) |
void | RemoveNodes (Flags IdentifierFlag=TO_ERASE) |
void | RemoveNodesFromAllLevels (Flags IdentifierFlag=TO_ERASE) |
ModelPart & | GetRootModelPart () |
const ModelPart & | GetRootModelPart () const |
NodeIterator | NodesBegin (IndexType ThisIndex=0) |
NodeConstantIterator | NodesBegin (IndexType ThisIndex=0) const |
NodeIterator | NodesEnd (IndexType ThisIndex=0) |
NodeConstantIterator | NodesEnd (IndexType ThisIndex=0) const |
NodesContainerType & | Nodes (IndexType ThisIndex=0) |
const NodesContainerType & | Nodes (IndexType ThisIndex=0) const |
NodesContainerType::Pointer | pNodes (IndexType ThisIndex=0) |
void | SetNodes (NodesContainerType::Pointer pOtherNodes, IndexType ThisIndex=0) |
NodesContainerType::ContainerType & | NodesArray (IndexType ThisIndex=0) |
void | AddNodalSolutionStepVariable (VariableData const &ThisVariable) |
bool | HasNodalSolutionStepVariable (VariableData const &ThisVariable) const |
VariablesList & | GetNodalSolutionStepVariablesList () |
VariablesList const & | GetNodalSolutionStepVariablesList () const |
VariablesList::Pointer | pGetNodalSolutionStepVariablesList () const |
void | SetNodalSolutionStepVariablesList () |
void | SetNodalSolutionStepVariablesList (VariablesList::Pointer pNewVariablesList) |
SizeType | GetNodalSolutionStepDataSize () |
SizeType | GetNodalSolutionStepTotalDataSize () |
Tables | |
SizeType | NumberOfTables () const |
void | AddTable (IndexType TableId, TableType::Pointer pNewTable) |
TableType::Pointer | pGetTable (IndexType TableId) |
TableType & | GetTable (IndexType TableId) |
void | RemoveTable (IndexType TableId) |
void | RemoveTableFromAllLevels (IndexType TableId) |
TableIterator | TablesBegin () |
TableConstantIterator | TablesBegin () const |
TableIterator | TablesEnd () |
TableConstantIterator | TablesEnd () const |
TablesContainerType & | Tables () |
TablesContainerType::ContainerType & | TablesArray () |
MasterSlaveConstraints | |
SizeType | NumberOfMasterSlaveConstraints (IndexType ThisIndex=0) const |
MasterSlaveConstraintContainerType & | MasterSlaveConstraints (IndexType ThisIndex=0) |
const MasterSlaveConstraintContainerType & | MasterSlaveConstraints (IndexType ThisIndex=0) const |
MasterSlaveConstraintConstantIteratorType | MasterSlaveConstraintsBegin (IndexType ThisIndex=0) const |
MasterSlaveConstraintConstantIteratorType | MasterSlaveConstraintsEnd (IndexType ThisIndex=0) const |
MasterSlaveConstraintIteratorType | MasterSlaveConstraintsBegin (IndexType ThisIndex=0) |
MasterSlaveConstraintIteratorType | MasterSlaveConstraintsEnd (IndexType ThisIndex=0) |
void | AddMasterSlaveConstraint (MasterSlaveConstraintType::Pointer pNewMasterSlaveConstraint, IndexType ThisIndex=0) |
void | AddMasterSlaveConstraints (std::vector< IndexType > const &MasterSlaveConstraintIds, IndexType ThisIndex=0) |
template<class TIteratorType > | |
void | AddMasterSlaveConstraints (TIteratorType constraints_begin, TIteratorType constraints_end, IndexType ThisIndex=0) |
MasterSlaveConstraint::Pointer | CreateNewMasterSlaveConstraint (const std::string &ConstraintName, IndexType Id, DofsVectorType &rMasterDofsVector, DofsVectorType &rSlaveDofsVector, const MatrixType &RelationMatrix, const VectorType &ConstantVector, IndexType ThisIndex=0) |
Creates a new master-slave constraint in the current modelpart. More... | |
MasterSlaveConstraint::Pointer | CreateNewMasterSlaveConstraint (const std::string &ConstraintName, IndexType Id, NodeType &rMasterNode, const DoubleVariableType &rMasterVariable, NodeType &rSlaveNode, const DoubleVariableType &rSlaveVariable, const double Weight, const double Constant, IndexType ThisIndex=0) |
void | RemoveMasterSlaveConstraint (IndexType MasterSlaveConstraintId, IndexType ThisIndex=0) |
Remove the master-slave constraint with given Id from mesh with ThisIndex in this modelpart and all its subs. More... | |
void | RemoveMasterSlaveConstraint (MasterSlaveConstraintType &ThisMasterSlaveConstraint, IndexType ThisIndex=0) |
Remove given master-slave constraint from mesh with ThisIndex in this modelpart and all its subs. More... | |
void | RemoveMasterSlaveConstraintFromAllLevels (IndexType MasterSlaveConstraintId, IndexType ThisIndex=0) |
Remove the master-slave constraint with given Id from mesh with ThisIndex in parents, itself and children. More... | |
void | RemoveMasterSlaveConstraintFromAllLevels (MasterSlaveConstraintType &ThisMasterSlaveConstraint, IndexType ThisIndex=0) |
Remove given master-slave constraint from mesh with ThisIndex in parents, itself and children. More... | |
void | RemoveMasterSlaveConstraints (Flags IdentifierFlag=TO_ERASE) |
It erases all constraints identified by "IdentifierFlag" by removing the pointer. More... | |
void | RemoveMasterSlaveConstraintsFromAllLevels (Flags IdentifierFlag=TO_ERASE) |
It erases all constraints identified by "IdentifierFlag" by removing the pointer. More... | |
bool | HasMasterSlaveConstraint (const IndexType MasterSlaveConstraintId, IndexType ThisIndex=0) const |
Returns if the MasterSlaveConstraint corresponding to it's identifier exists. More... | |
MasterSlaveConstraintType::Pointer | pGetMasterSlaveConstraint (IndexType ConstraintId, IndexType ThisIndex=0) |
MasterSlaveConstraintType & | GetMasterSlaveConstraint (IndexType MasterSlaveConstraintId, IndexType ThisIndex=0) |
const MasterSlaveConstraintType & | GetMasterSlaveConstraint (IndexType MasterSlaveConstraintId, IndexType ThisIndex=0) const |
Properties | |
SizeType | NumberOfProperties (IndexType ThisIndex=0) const |
Returns the number of properties of the mesh. More... | |
void | AddProperties (PropertiesType::Pointer pNewProperties, IndexType ThisIndex=0) |
Inserts a properties in the current mesh. More... | |
bool | HasProperties (IndexType PropertiesId, IndexType MeshIndex=0) const |
Returns if the Properties corresponding to it's identifier exists. More... | |
bool | RecursivelyHasProperties (IndexType PropertiesId, IndexType MeshIndex=0) const |
Returns if the Properties corresponding to it's identifier exists in any of the model parts. More... | |
PropertiesType::Pointer | CreateNewProperties (IndexType PropertiesId, IndexType MeshIndex=0) |
Creates a new property in the current mesh. More... | |
PropertiesType::Pointer | pGetProperties (IndexType PropertiesId, IndexType MeshIndex=0) |
Returns the Properties::Pointer corresponding to it's identifier. More... | |
const PropertiesType::Pointer | pGetProperties (IndexType PropertiesId, IndexType MeshIndex=0) const |
Returns the Properties::Pointer corresponding to it's identifier (const version) More... | |
PropertiesType & | GetProperties (IndexType PropertiesId, IndexType MeshIndex=0) |
Returns the Properties::Pointer corresponding to it's identifier. More... | |
const PropertiesType & | GetProperties (IndexType PropertiesId, IndexType MeshIndex=0) const |
Returns the Properties::Pointer corresponding to it's identifier (const version) More... | |
bool | HasProperties (const std::string &rAddress, IndexType MeshIndex=0) const |
Returns if the sub Properties corresponding to it's address exists. More... | |
PropertiesType::Pointer | pGetProperties (const std::string &rAddress, IndexType MeshIndex=0) |
Returns the sub Properties::Pointer corresponding to it's address. More... | |
const PropertiesType::Pointer | pGetProperties (const std::string &rAddress, IndexType MeshIndex=0) const |
Returns the sub Properties::Pointer corresponding to it's address (const version) More... | |
PropertiesType & | GetProperties (const std::string &rAddress, IndexType MeshIndex=0) |
Returns the sub Properties::Pointer corresponding to it's address. More... | |
const PropertiesType & | GetProperties (const std::string &rAddress, IndexType MeshIndex=0) const |
Returns the sub Properties::Pointer corresponding to it's address (const version) More... | |
void | RemoveProperties (IndexType PropertiesId, IndexType ThisIndex=0) |
void | RemoveProperties (PropertiesType &ThisProperties, IndexType ThisIndex=0) |
void | RemoveProperties (PropertiesType::Pointer pThisProperties, IndexType ThisIndex=0) |
void | RemovePropertiesFromAllLevels (IndexType PropertiesId, IndexType ThisIndex=0) |
void | RemovePropertiesFromAllLevels (PropertiesType &ThisProperties, IndexType ThisIndex=0) |
void | RemovePropertiesFromAllLevels (PropertiesType::Pointer pThisProperties, IndexType ThisIndex=0) |
PropertiesIterator | PropertiesBegin (IndexType ThisIndex=0) |
PropertiesConstantIterator | PropertiesBegin (IndexType ThisIndex=0) const |
PropertiesIterator | PropertiesEnd (IndexType ThisIndex=0) |
PropertiesConstantIterator | PropertiesEnd (IndexType ThisIndex=0) const |
PropertiesContainerType & | rProperties (IndexType ThisIndex=0) |
PropertiesContainerType::Pointer | pProperties (IndexType ThisIndex=0) |
void | SetProperties (PropertiesContainerType::Pointer pOtherProperties, IndexType ThisIndex=0) |
PropertiesContainerType::ContainerType & | PropertiesArray (IndexType ThisIndex=0) |
Elements | |
SizeType | NumberOfElements (IndexType ThisIndex=0) const |
void | AddElement (ElementType::Pointer pNewElement, IndexType ThisIndex=0) |
void | AddElements (std::vector< IndexType > const &ElementIds, IndexType ThisIndex=0) |
template<class TIteratorType > | |
void | AddElements (TIteratorType elements_begin, TIteratorType elements_end, IndexType ThisIndex=0) |
ElementType::Pointer | CreateNewElement (std::string ElementName, IndexType Id, std::vector< IndexType > ElementNodeIds, PropertiesType::Pointer pProperties, IndexType ThisIndex=0) |
Creates new element with a node ids list. More... | |
ElementType::Pointer | CreateNewElement (std::string ElementName, IndexType Id, Geometry< Node >::PointsArrayType pElementNodes, PropertiesType::Pointer pProperties, IndexType ThisIndex=0) |
Creates new element with a nodes list. More... | |
ElementType::Pointer | CreateNewElement (std::string ElementName, IndexType Id, typename GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties, IndexType ThisIndex=0) |
Creates new element with pointer to geometry. More... | |
bool | HasElement (IndexType ElementId, IndexType ThisIndex=0) const |
ElementType::Pointer | pGetElement (IndexType ElementId, IndexType ThisIndex=0) |
const ElementType::Pointer | pGetElement (const IndexType ElementId, const IndexType ThisIndex=0) const |
ElementType & | GetElement (IndexType ElementId, IndexType ThisIndex=0) |
const ElementType & | GetElement (IndexType ElementId, IndexType ThisIndex=0) const |
void | RemoveElement (IndexType ElementId, IndexType ThisIndex=0) |
void | RemoveElement (ElementType &ThisElement, IndexType ThisIndex=0) |
void | RemoveElement (ElementType::Pointer pThisElement, IndexType ThisIndex=0) |
void | RemoveElementFromAllLevels (IndexType ElementId, IndexType ThisIndex=0) |
void | RemoveElementFromAllLevels (ElementType &ThisElement, IndexType ThisIndex=0) |
void | RemoveElementFromAllLevels (ElementType::Pointer pThisElement, IndexType ThisIndex=0) |
void | RemoveElements (Flags IdentifierFlag=TO_ERASE) |
void | RemoveElementsFromAllLevels (Flags IdentifierFlag=TO_ERASE) |
ElementIterator | ElementsBegin (IndexType ThisIndex=0) |
ElementConstantIterator | ElementsBegin (IndexType ThisIndex=0) const |
ElementIterator | ElementsEnd (IndexType ThisIndex=0) |
ElementConstantIterator | ElementsEnd (IndexType ThisIndex=0) const |
ElementsContainerType & | Elements (IndexType ThisIndex=0) |
const ElementsContainerType & | Elements (IndexType ThisIndex=0) const |
ElementsContainerType::Pointer | pElements (IndexType ThisIndex=0) |
void | SetElements (ElementsContainerType::Pointer pOtherElements, IndexType ThisIndex=0) |
ElementsContainerType::ContainerType & | ElementsArray (IndexType ThisIndex=0) |
Conditions | |
SizeType | NumberOfConditions (IndexType ThisIndex=0) const |
void | AddCondition (ConditionType::Pointer pNewCondition, IndexType ThisIndex=0) |
void | AddConditions (std::vector< IndexType > const &ConditionIds, IndexType ThisIndex=0) |
template<class TIteratorType > | |
void | AddConditions (TIteratorType conditions_begin, TIteratorType conditions_end, IndexType ThisIndex=0) |
ConditionType::Pointer | CreateNewCondition (std::string ConditionName, IndexType Id, std::vector< IndexType > ConditionNodeIds, PropertiesType::Pointer pProperties, IndexType ThisIndex=0) |
Creates new condition with a node ids list. More... | |
ConditionType::Pointer | CreateNewCondition (std::string ConditionName, IndexType Id, Geometry< Node >::PointsArrayType pConditionNodes, PropertiesType::Pointer pProperties, IndexType ThisIndex=0) |
Creates new condition with a nodes list. More... | |
ConditionType::Pointer | CreateNewCondition (std::string ConditionName, IndexType Id, typename GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties, IndexType ThisIndex=0) |
Creates new condition with pointer to geometry. More... | |
bool | HasCondition (IndexType ConditionId, IndexType ThisIndex=0) const |
ConditionType::Pointer | pGetCondition (IndexType ConditionId, IndexType ThisIndex=0) |
const ConditionType::Pointer | pGetCondition (const IndexType ConditionId, const IndexType ThisIndex=0) const |
ConditionType & | GetCondition (IndexType ConditionId, IndexType ThisIndex=0) |
const ConditionType & | GetCondition (IndexType ConditionId, IndexType ThisIndex=0) const |
void | RemoveCondition (IndexType ConditionId, IndexType ThisIndex=0) |
void | RemoveCondition (ConditionType &ThisCondition, IndexType ThisIndex=0) |
void | RemoveCondition (ConditionType::Pointer pThisCondition, IndexType ThisIndex=0) |
void | RemoveConditionFromAllLevels (IndexType ConditionId, IndexType ThisIndex=0) |
void | RemoveConditionFromAllLevels (ConditionType &ThisCondition, IndexType ThisIndex=0) |
void | RemoveConditionFromAllLevels (ConditionType::Pointer pThisCondition, IndexType ThisIndex=0) |
void | RemoveConditions (Flags IdentifierFlag=TO_ERASE) |
void | RemoveConditionsFromAllLevels (Flags IdentifierFlag=TO_ERASE) |
ConditionIterator | ConditionsBegin (IndexType ThisIndex=0) |
ConditionConstantIterator | ConditionsBegin (IndexType ThisIndex=0) const |
ConditionIterator | ConditionsEnd (IndexType ThisIndex=0) |
ConditionConstantIterator | ConditionsEnd (IndexType ThisIndex=0) const |
ConditionsContainerType & | Conditions (IndexType ThisIndex=0) |
const ConditionsContainerType & | Conditions (IndexType ThisIndex=0) const |
ConditionsContainerType::Pointer | pConditions (IndexType ThisIndex=0) |
void | SetConditions (ConditionsContainerType::Pointer pOtherConditions, IndexType ThisIndex=0) |
ConditionsContainerType::ContainerType & | ConditionsArray (IndexType ThisIndex=0) |
Geometry Container | |
SizeType | NumberOfGeometries () const |
GeometryType::Pointer | CreateNewGeometry (const std::string &rGeometryTypeName, const std::vector< IndexType > &rGeometryNodeIds) |
Inserts a geometry in the current model part. More... | |
GeometryType::Pointer | CreateNewGeometry (const std::string &rGeometryTypeName, GeometryType::PointsArrayType pGeometryNodes) |
Inserts a geometry in the current model part. More... | |
GeometryType::Pointer | CreateNewGeometry (const std::string &rGeometryTypeName, GeometryType::Pointer pGeometry) |
Inserts a geometry in the current model part. More... | |
GeometryType::Pointer | CreateNewGeometry (const std::string &rGeometryTypeName, const IndexType GeometryId, const std::vector< IndexType > &rGeometryNodeIds) |
Inserts a geometry in the current model part. More... | |
GeometryType::Pointer | CreateNewGeometry (const std::string &rGeometryTypeName, const IndexType GeometryId, GeometryType::PointsArrayType pGeometryNodes) |
Inserts a geometry in the current model part. More... | |
GeometryType::Pointer | CreateNewGeometry (const std::string &rGeometryTypeName, const IndexType GeometryId, GeometryType::Pointer pGeometry) |
Inserts a geometry in the current model part. More... | |
GeometryType::Pointer | CreateNewGeometry (const std::string &rGeometryTypeName, const std::string &rGeometryIdentifierName, const std::vector< IndexType > &rGeometryNodeIds) |
Inserts a geometry in the current model part. More... | |
GeometryType::Pointer | CreateNewGeometry (const std::string &rGeometryTypeName, const std::string &rGeometryIdentifierName, GeometryType::PointsArrayType pGeometryNodes) |
Inserts a geometry in the current model part. More... | |
GeometryType::Pointer | CreateNewGeometry (const std::string &rGeometryTypeName, const std::string &rGeometryIdentifierName, GeometryType::Pointer pGeometry) |
Inserts a geometry in the current model part. More... | |
void | AddGeometry (typename GeometryType::Pointer pNewGeometry) |
Adds a geometry to the geometry container. More... | |
void | AddGeometries (std::vector< IndexType > const &GeometriesIds) |
Inserts a list of geometries to a submodelpart provided their Id. Does nothing if applied to the top model part. More... | |
template<class TIteratorType > | |
void | AddGeometries (TIteratorType GeometryBegin, TIteratorType GeometriesEnd, IndexType ThisIndex=0) |
Inserts a list of geometries to a submodelpart provided their iterators. More... | |
GeometryType::Pointer | pGetGeometry (IndexType GeometryId) |
Returns the Geometry::Pointer corresponding to the Id. More... | |
const GeometryType::Pointer | pGetGeometry (IndexType GeometryId) const |
Returns the const Geometry::Pointer corresponding to the Id. More... | |
GeometryType::Pointer | pGetGeometry (std::string GeometryName) |
Returns the Geometry::Pointer corresponding to the name. More... | |
const GeometryType::Pointer | pGetGeometry (std::string GeometryName) const |
Returns the Geometry::Pointer corresponding to the name. More... | |
GeometryType & | GetGeometry (IndexType GeometryId) |
Returns a reference geometry corresponding to the id. More... | |
const GeometryType & | GetGeometry (IndexType GeometryId) const |
Returns a const reference geometry corresponding to the id. More... | |
GeometryType & | GetGeometry (std::string GeometryName) |
Returns a reference geometry corresponding to the name. More... | |
const GeometryType & | GetGeometry (std::string GeometryName) const |
Returns a const reference geometry corresponding to the name. More... | |
bool | HasGeometry (IndexType GeometryId) const |
Checks if has geometry by id. More... | |
bool | HasGeometry (std::string GeometryName) const |
Checks if has geometry by name. More... | |
void | RemoveGeometry (IndexType GeometryId) |
Removes a geometry by id. More... | |
void | RemoveGeometry (std::string GeometryName) |
Removes a geometry by name. More... | |
void | RemoveGeometryFromAllLevels (IndexType GeometryId) |
Removes a geometry by id from all root and sub model parts. More... | |
void | RemoveGeometryFromAllLevels (std::string GeometryName) |
Removes a geometry by name from all root and sub model parts. More... | |
GeometryIterator | GeometriesBegin () |
Begin geometry iterator. More... | |
GeometryConstantIterator | GeometriesBegin () const |
Begin geometry const iterator. More... | |
GeometryIterator | GeometriesEnd () |
End geometry iterator. More... | |
GeometryConstantIterator | GeometriesEnd () const |
End geometry const iterator. More... | |
GeometriesMapType & | Geometries () |
Get geometry map container. More... | |
const GeometriesMapType & | Geometries () const |
Get geometry map container. More... | |
Sub model parts | |
SizeType | NumberOfSubModelParts () const |
ModelPart & | CreateSubModelPart (std::string const &NewSubModelPartName) |
ModelPart & | GetSubModelPart (std::string const &SubModelPartName) |
const ModelPart & | GetSubModelPart (std::string const &SubModelPartName) const |
ModelPart * | pGetSubModelPart (std::string const &SubModelPartName) |
void | RemoveSubModelPart (std::string const &ThisSubModelPartName) |
void | RemoveSubModelPart (ModelPart &ThisSubModelPart) |
SubModelPartIterator | SubModelPartsBegin () |
SubModelPartConstantIterator | SubModelPartsBegin () const |
SubModelPartIterator | SubModelPartsEnd () |
SubModelPartConstantIterator | SubModelPartsEnd () const |
SubModelPartsContainerType & | SubModelParts () |
const SubModelPartsContainerType & | SubModelParts () const |
ModelPart & | GetParentModelPart () |
const ModelPart & | GetParentModelPart () const |
bool | HasSubModelPart (std::string const &ThisSubModelPartName) const |
Access | |
ProcessInfo & | GetProcessInfo () |
ProcessInfo const & | GetProcessInfo () const |
ProcessInfo::Pointer | pGetProcessInfo () |
const ProcessInfo::Pointer | pGetProcessInfo () const |
void | SetProcessInfo (ProcessInfo::Pointer pNewProcessInfo) |
void | SetProcessInfo (ProcessInfo &NewProcessInfo) |
SizeType | NumberOfMeshes () |
MeshType::Pointer | pGetMesh (IndexType ThisIndex=0) |
const MeshType::Pointer | pGetMesh (IndexType ThisIndex=0) const |
MeshType & | GetMesh (IndexType ThisIndex=0) |
MeshType const & | GetMesh (IndexType ThisIndex=0) const |
MeshesContainerType & | GetMeshes () |
MeshesContainerType const & | GetMeshes () const |
std::string & | Name () |
std::string const & | Name () const |
Communicator & | GetCommunicator () |
Communicator const & | GetCommunicator () const |
Communicator::Pointer | pGetCommunicator () |
void | SetCommunicator (Communicator::Pointer pNewCommunicator) |
Operations | |
std::string | FullName () const |
This method returns the full name of the model part (including the parents model parts) More... | |
std::vector< std::string > | GetSubModelPartNames () const |
This method returns the names of submodelparts. More... | |
void | SetBufferSize (IndexType NewBufferSize) |
This method sets the suffer size of the model part database. More... | |
IndexType | GetBufferSize () const |
This method gets the suffer size of the model part database. More... | |
virtual int | Check () const |
run input validation More... | |
Inquiry | |
bool | IsSubModelPart () const |
bool | IsDistributed () const |
Input and output | |
std::string | Info () const override |
Turn back information as a string. More... | |
void | PrintInfo (std::ostream &rOStream) const override |
Print information about this object. More... | |
void | PrintData (std::ostream &rOStream) const override |
Print object's data. More... | |
virtual void | PrintInfo (std::ostream &rOStream, std::string const &PrefixString) const |
Print information about this object. More... | |
virtual void | PrintData (std::ostream &rOStream, std::string const &PrefixString) const |
Print object's data. More... | |
Public Member Functions inherited from Kratos::DataValueContainer | |
DataValueContainer () | |
Default constructor. More... | |
DataValueContainer (DataValueContainer const &rOther) | |
Copy constructor. More... | |
virtual | ~DataValueContainer () |
Destructor. More... | |
template<class TDataType > | |
const TDataType & | operator() (const VariableData &rThisVariable) const |
Accessor operator for retrieving a data value by a VariableData. More... | |
template<class TDataType > | |
TDataType & | operator() (const Variable< TDataType > &rThisVariable) |
Accessor operator for retrieving a data value by a Variable. More... | |
template<class TDataType > | |
const TDataType & | operator() (const Variable< TDataType > &rThisVariable) const |
Accessor operator for retrieving a data value by a Variable (const version). More... | |
template<class TDataType > | |
TDataType & | operator[] (const VariableData &rThisVariable) |
Index operator for retrieving a data value by a VariableData. More... | |
template<class TDataType > | |
const TDataType & | operator[] (const VariableData &rThisVariable) const |
Index operator for retrieving a data value by a VariableData (const version). More... | |
template<class TDataType > | |
TDataType & | operator[] (const Variable< TDataType > &rThisVariable) |
Index operator for retrieving a data value by a Variable. More... | |
template<class TDataType > | |
const TDataType & | operator[] (const Variable< TDataType > &rThisVariable) const |
Index operator for retrieving a data value by a Variable (const version). More... | |
iterator | begin () |
Iterator pointing to the beginning of the container. More... | |
const_iterator | begin () const |
Const iterator pointing to the beginning of the container. More... | |
iterator | end () |
Iterator pointing to the end of the container. More... | |
const_iterator | end () const |
Const iterator pointing to the end of the container. More... | |
DataValueContainer & | operator= (const DataValueContainer &rOther) |
Assignment operator for copying data from another DataValueContainer. More... | |
template<class TDataType > | |
TDataType & | GetValue (const Variable< TDataType > &rThisVariable) |
Gets the value associated with a given variable. More... | |
template<class TDataType > | |
const TDataType & | GetValue (const Variable< TDataType > &rThisVariable) const |
Gets the value associated with a given variable (const version). More... | |
SizeType | Size () |
Gets the size of the data container. More... | |
template<class TDataType > | |
void | SetValue (const Variable< TDataType > &rThisVariable, TDataType const &rValue) |
Sets the value for a given variable. More... | |
template<class TDataType > | |
void | Erase (const Variable< TDataType > &rThisVariable) |
Erases the value associated with a given variable. More... | |
void | Clear () |
Clears the entire data container. More... | |
void | Merge (const DataValueContainer &rOther, const Flags Options) |
Merges this data container with another data container. More... | |
template<class TDataType > | |
bool | Has (const Variable< TDataType > &rThisVariable) const |
Checks if the data container has a value associated with a given variable. More... | |
bool | IsEmpty () const |
Checks if the data container is empty. More... | |
KRATOS_DEFINE_LOCAL_FLAG (OVERWRITE_OLD_VALUES) | |
Define local flag. More... | |
KRATOS_CLASS_POINTER_DEFINITION (DataValueContainer) | |
Pointer definition of DataValueContainer. More... | |
Public Member Functions inherited from Kratos::Flags | |
Flags & | operator= (Flags const &rOther) |
Assignment operator. More... | |
operator bool () const | |
Flags | operator~ () const |
bool | operator! () const |
void | AssignFlags (Flags const &rOther) |
void | Set (const Flags ThisFlag) |
void | Set (const Flags ThisFlag, bool Value) |
void | Reset (const Flags ThisFlag) |
void | Flip (const Flags ThisFlag) |
void | SetPosition (IndexType Position, bool Value=true) |
bool | GetPosition (IndexType Position) const |
void | FlipPosition (IndexType Position) |
void | ClearPosition (IndexType Position) |
void | Clear () |
Flags | AsFalse () const |
bool | Is (Flags const &rOther) const |
bool | IsDefined (Flags const &rOther) const |
bool | IsNot (Flags const &rOther) const |
bool | IsNotDefined (Flags const &rOther) const |
KRATOS_CLASS_POINTER_DEFINITION (Flags) | |
Pointer definition of Flags. More... | |
const Flags & | operator|= (const Flags &Other) |
const Flags & | operator&= (const Flags &Other) |
Flags () | |
Default constructor. More... | |
Flags (Flags const &rOther) | |
Copy constructor. More... | |
virtual | ~Flags () |
Destructor. More... | |
Friends | |
class | Model |
TODO replace this "model" for real one once available in kratos core. More... | |
Serialization | |
class | Serializer |
Additional Inherited Members | |
Static Public Member Functions inherited from Kratos::Flags | |
static const Flags | AllDefined () |
static const Flags | AllTrue () |
static Flags | Create (IndexType ThisPosition, bool Value=true) |
This class aims to manage meshes for multi-physics simulations.
Const iterator over the Conditions. This iterator is an indirect iterator over Conditions::Pointer which turn back a reference to Condition by * operator and not a pointer for more convenient usage.
Iterator over the Conditions. This iterator is an indirect iterator over Conditions::Pointer which turn back a reference to Condition by * operator and not a pointer for more convenient usage.
typedef MeshType::ConditionsContainerType Kratos::ModelPart::ConditionsContainerType |
Condintions container. A vector set of Conditions with their Id's as key.
typedef std::vector< DofType::Pointer > Kratos::ModelPart::DofsVectorType |
typedef Dof<double> Kratos::ModelPart::DofType |
Const iterator over the Elements. This iterator is an indirect iterator over Elements::Pointer which turn back a reference to Element by * operator and not a pointer for more convenient usage.
typedef MeshType::ElementIterator Kratos::ModelPart::ElementIterator |
Iterator over the Elements. This iterator is an indirect iterator over Elements::Pointer which turn back a reference to Element by * operator and not a pointer for more convenient usage.
typedef MeshType::ElementsContainerType Kratos::ModelPart::ElementsContainerType |
Element container. A vector set of Elements with their Id's as key.
Iterator over the properties. This iterator is an indirect iterator over Properties::Pointer which turn back a reference to properties by * operator and not a pointer for more convenient usage.
Geometry Hash Map Container. Stores with hash of Ids to corresponding geometries.
Const Geometry Iterator.
The Geometry Container.
Contains all geometries, which can be addressed by specific identifiers.
Geometry Iterator.
typedef std::size_t Kratos::ModelPart::IndexType |
Pointer definition of ModelPart.
typedef MeshType::MasterSlaveConstraintConstantIteratorType Kratos::ModelPart::MasterSlaveConstraintConstantIteratorType |
Const iterator over the constraints. This iterator is an indirect iterator over MasterSlaveConstraint::Pointer which turn back a reference to Table by * operator and not a pointer for more convenient usage.
typedef MeshType::MasterSlaveConstraintContainerType Kratos::ModelPart::MasterSlaveConstraintContainerType |
typedef MeshType::MasterSlaveConstraintIteratorType Kratos::ModelPart::MasterSlaveConstraintIteratorType |
Iterator over the constraints. This iterator is an indirect iterator over MasterSlaveConstraint::Pointer which turn back a reference to MasterSlaveConstraint by * operator and not a pointer for more convenient usage.
The container of the constraints.
typedef Matrix Kratos::ModelPart::MatrixType |
Const iterator over the nodes. This iterator is an indirect iterator over Node::Pointer which turn back a reference to node by * operator and not a pointer for more convenient usage.
typedef MeshType::NodeIterator Kratos::ModelPart::NodeIterator |
Iterator over the nodes. This iterator is an indirect iterator over Node::Pointer which turn back a reference to node by * operator and not a pointer for more convenient usage.
typedef MeshType::NodesContainerType Kratos::ModelPart::NodesContainerType |
Nodes container. Which is a vector set of nodes with their Id's as key.
typedef Node Kratos::ModelPart::NodeType |
Const iterator over the Properties. This iterator is an indirect iterator over Properties::Pointer which turn back a reference to Properties by * operator and not a pointer for more convenient usage.
Properties container. Which is a vector set of Properties with their Id's as key.
Iterator over the properties. This iterator is an indirect iterator over Properties::Pointer which turn back a reference to properties by * operator and not a pointer for more convenient usage.
Iterator over the Properties. This iterator is an indirect iterator over Node::Pointer which turn back a reference to node by * operator and not a pointer for more convenient usage.
typedef std::size_t Kratos::ModelPart::SizeType |
Constant iterator over the sub model parts of this model part.
Note that this iterator only iterates over the next level of sub model parts and does not go through the hierarchy of the sub model parts
Iterator over the sub model parts of this model part.
Note that this iterator only iterates over the next level of sub model parts and does not go through the hierarchy of the sub model parts
typedef PointerHashMapSet<ModelPart, std::hash< std::string >, GetModelPartName, Kratos::shared_ptr<ModelPart> > Kratos::ModelPart::SubModelPartsContainerType |
The container of the sub model parts. A hash table is used.
Const iterator over the Tables. This iterator is an indirect iterator over Tables::Pointer which turn back a reference to Table by * operator and not a pointer for more convenient usage.
Iterator over the Tables. This iterator is an indirect iterator over Tables::Pointer which turn back a reference to Table by * operator and not a pointer for more convenient usage.
The container of the tables. A vector map of the tables.
typedef Table<double,double> Kratos::ModelPart::TableType |
Defining a table with double argument and result type as table type.
typedef Vector Kratos::ModelPart::VectorType |
|
override |
Destructor.
void Kratos::ModelPart::AddCondition | ( | ConditionType::Pointer | pNewCondition, |
IndexType | ThisIndex = 0 |
||
) |
Inserts a condition in the current mesh.
Inserts a condition in the mesh with ThisIndex.
void Kratos::ModelPart::AddConditions | ( | std::vector< IndexType > const & | ConditionIds, |
IndexType | ThisIndex = 0 |
||
) |
Inserts a list of conditions to a submodelpart provided their Id. Does nothing if applied to the top model part
|
inline |
Inserts a list of pointers to nodes
void Kratos::ModelPart::AddElement | ( | ElementType::Pointer | pNewElement, |
IndexType | ThisIndex = 0 |
||
) |
Inserts a element in the current mesh.
Inserts a element in the mesh with ThisIndex.
void Kratos::ModelPart::AddElements | ( | std::vector< IndexType > const & | ElementIds, |
IndexType | ThisIndex = 0 |
||
) |
Inserts a list of elements to a submodelpart provided their Id. Does nothing if applied to the top model part
Inserts a list of conditions to a submodelpart provided their Id. Does nothing if applied to the top model part
|
inline |
Inserts a list of pointers to elements
void Kratos::ModelPart::AddGeometries | ( | std::vector< IndexType > const & | GeometriesIds | ) |
Inserts a list of geometries to a submodelpart provided their Id. Does nothing if applied to the top model part.
Inserts a list of geometries to a submodelpart provided their Id. Does nothing if applied to the top model part
|
inline |
Inserts a list of geometries to a submodelpart provided their iterators.
void Kratos::ModelPart::AddGeometry | ( | typename GeometryType::Pointer | pNewGeometry | ) |
Adds a geometry to the geometry container.
Check if geometry id already used, is done within the geometry container.
void Kratos::ModelPart::AddMasterSlaveConstraint | ( | MasterSlaveConstraintType::Pointer | pNewMasterSlaveConstraint, |
IndexType | ThisIndex = 0 |
||
) |
Inserts a master-slave constraint in the current modelpart.
Inserts a master-slave constraint in the current mesh.
void Kratos::ModelPart::AddMasterSlaveConstraints | ( | std::vector< IndexType > const & | MasterSlaveConstraintIds, |
IndexType | ThisIndex = 0 |
||
) |
Inserts a list of master-slave constraints to a submodelpart provided their Id. Does nothing if applied to the top model part
|
inline |
Inserts a list of pointers to Master-Slave constraints
|
inline |
void Kratos::ModelPart::AddNode | ( | NodeType::Pointer | pNewNode, |
IndexType | ThisIndex = 0 |
||
) |
Inserts a node in the current mesh.
Inserts a node in the mesh with ThisIndex.
void Kratos::ModelPart::AddNodes | ( | std::vector< IndexType > const & | NodeIds, |
IndexType | ThisIndex = 0 |
||
) |
Inserts a list of nodes in a submodelpart provided their Id. Does nothing if applied to the top model part
|
inline |
Inserts a list of pointers to nodes
void Kratos::ModelPart::AddProperties | ( | PropertiesType::Pointer | pNewProperties, |
IndexType | ThisIndex = 0 |
||
) |
Inserts a properties in the current mesh.
pNewProperties | The new property pointer to be added |
ThisIndex | The index identifying the mesh |
Inserts a properties in the mesh with ThisIndex.
void Kratos::ModelPart::AddTable | ( | IndexType | TableId, |
TableType::Pointer | pNewTable | ||
) |
Inserts a Table
void Kratos::ModelPart::AssignNode | ( | NodeType::Pointer | pThisNode, |
IndexType | ThisIndex = 0 |
||
) |
|
virtual |
run input validation
void Kratos::ModelPart::Clear | ( | ) |
Function to wipe a modelpart clean, However, variables list, buffer size and process info is preserved
ModelPart::IndexType Kratos::ModelPart::CloneSolutionStep | ( | ) |
ModelPart::IndexType Kratos::ModelPart::CloneTimeStep | ( | ) |
ModelPart::IndexType Kratos::ModelPart::CloneTimeStep | ( | double | NewTime | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
ConditionType::Pointer Kratos::ModelPart::CreateNewCondition | ( | std::string | ConditionName, |
IndexType | Id, | ||
Geometry< Node >::PointsArrayType | pConditionNodes, | ||
PropertiesType::Pointer | pProperties, | ||
IndexType | ThisIndex = 0 |
||
) |
Creates new condition with a nodes list.
ConditionType::Pointer Kratos::ModelPart::CreateNewCondition | ( | std::string | ConditionName, |
IndexType | Id, | ||
std::vector< IndexType > | ConditionNodeIds, | ||
PropertiesType::Pointer | pProperties, | ||
IndexType | ThisIndex = 0 |
||
) |
Creates new condition with a node ids list.
ConditionType::Pointer Kratos::ModelPart::CreateNewCondition | ( | std::string | ConditionName, |
IndexType | Id, | ||
typename GeometryType::Pointer | pGeometry, | ||
PropertiesType::Pointer | pProperties, | ||
IndexType | ThisIndex = 0 |
||
) |
Creates new condition with pointer to geometry.
ElementType::Pointer Kratos::ModelPart::CreateNewElement | ( | std::string | ElementName, |
IndexType | Id, | ||
Geometry< Node >::PointsArrayType | pElementNodes, | ||
PropertiesType::Pointer | pProperties, | ||
IndexType | ThisIndex = 0 |
||
) |
Creates new element with a nodes list.
ElementType::Pointer Kratos::ModelPart::CreateNewElement | ( | std::string | ElementName, |
IndexType | Id, | ||
std::vector< IndexType > | ElementNodeIds, | ||
PropertiesType::Pointer | pProperties, | ||
IndexType | ThisIndex = 0 |
||
) |
Creates new element with a node ids list.
ElementType::Pointer Kratos::ModelPart::CreateNewElement | ( | std::string | ElementName, |
IndexType | Id, | ||
typename GeometryType::Pointer | pGeometry, | ||
PropertiesType::Pointer | pProperties, | ||
IndexType | ThisIndex = 0 |
||
) |
Creates new element with pointer to geometry.
ModelPart::GeometryType::Pointer Kratos::ModelPart::CreateNewGeometry | ( | const std::string & | rGeometryTypeName, |
const IndexType | GeometryId, | ||
const std::vector< IndexType > & | rGeometryNodeIds | ||
) |
Inserts a geometry in the current model part.
rGeometryTypeName | The type of the geometry to be added, must be registered. |
GeometryId | of the new geometry added. |
rGeometryNodeIds | The node ids to create the geometry. |
ModelPart::GeometryType::Pointer Kratos::ModelPart::CreateNewGeometry | ( | const std::string & | rGeometryTypeName, |
const IndexType | GeometryId, | ||
GeometryType::Pointer | pGeometry | ||
) |
Inserts a geometry in the current model part.
rGeometryTypeName | The type of the geometry to be added, must be registered. |
GeometryId | of the new geometry added. |
pGeometry | The pointer to an existing geometry. |
ModelPart::GeometryType::Pointer Kratos::ModelPart::CreateNewGeometry | ( | const std::string & | rGeometryTypeName, |
const IndexType | GeometryId, | ||
GeometryType::PointsArrayType | pGeometryNodes | ||
) |
Inserts a geometry in the current model part.
rGeometryTypeName | The type of the geometry to be added, must be registered. |
GeometryId | of the new geometry added. |
pGeometryNodes | The nodes array to create the geometry. |
ModelPart::GeometryType::Pointer Kratos::ModelPart::CreateNewGeometry | ( | const std::string & | rGeometryTypeName, |
const std::string & | rGeometryIdentifierName, | ||
const std::vector< IndexType > & | rGeometryNodeIds | ||
) |
Inserts a geometry in the current model part.
rGeometryTypeName | The type of the geometry to be added, must be registered. |
rGeometryIdentifierName | the identifier id of this geometry. Must be identical. |
rGeometryNodeIds | The node ids to create the geometry. |
ModelPart::GeometryType::Pointer Kratos::ModelPart::CreateNewGeometry | ( | const std::string & | rGeometryTypeName, |
const std::string & | rGeometryIdentifierName, | ||
GeometryType::Pointer | pGeometry | ||
) |
Inserts a geometry in the current model part.
rGeometryTypeName | The type of the geometry to be added. Must be registered. |
rGeometryIdentifierName | the identifier id of this geometry. Must be identical. |
pGeometry | The pointer to an existing geometry. |
ModelPart::GeometryType::Pointer Kratos::ModelPart::CreateNewGeometry | ( | const std::string & | rGeometryTypeName, |
const std::string & | rGeometryIdentifierName, | ||
GeometryType::PointsArrayType | pGeometryNodes | ||
) |
Inserts a geometry in the current model part.
rGeometryTypeName | The type of the geometry to be added. Must be registered. |
rGeometryIdentifierName | the identifier id of this geometry. Must be identical. |
pGeometryNodes | The nodes array to create the geometry. |
ModelPart::GeometryType::Pointer Kratos::ModelPart::CreateNewGeometry | ( | const std::string & | rGeometryTypeName, |
const std::vector< IndexType > & | rGeometryNodeIds | ||
) |
Inserts a geometry in the current model part.
rGeometryTypeName | The type of the geometry to be added, must be registered. |
rGeometryNodeIds | The node ids to create the geometry. |
ModelPart::GeometryType::Pointer Kratos::ModelPart::CreateNewGeometry | ( | const std::string & | rGeometryTypeName, |
GeometryType::Pointer | pGeometry | ||
) |
Inserts a geometry in the current model part.
rGeometryTypeName | The type of the geometry to be added, must be registered. |
pGeometry | The pointer to an existing geometry. |
ModelPart::GeometryType::Pointer Kratos::ModelPart::CreateNewGeometry | ( | const std::string & | rGeometryTypeName, |
GeometryType::PointsArrayType | pGeometryNodes | ||
) |
Inserts a geometry in the current model part.
rGeometryTypeName | The type of the geometry to be added, must be registered. |
pGeometryNodes | The nodes array to create the geometry. |
ModelPart::MasterSlaveConstraintType::Pointer Kratos::ModelPart::CreateNewMasterSlaveConstraint | ( | const std::string & | ConstraintName, |
IndexType | Id, | ||
ModelPart::DofsVectorType & | rMasterDofsVector, | ||
ModelPart::DofsVectorType & | rSlaveDofsVector, | ||
const MatrixType & | RelationMatrix, | ||
const VectorType & | ConstantVector, | ||
IndexType | ThisIndex = 0 |
||
) |
Creates a new master-slave constraint in the current modelpart.
Inserts an master-slave constraint in the current mesh.
ModelPart::MasterSlaveConstraintType::Pointer Kratos::ModelPart::CreateNewMasterSlaveConstraint | ( | const std::string & | ConstraintName, |
ModelPart::IndexType | Id, | ||
ModelPart::NodeType & | rMasterNode, | ||
const DoubleVariableType & | rMasterVariable, | ||
ModelPart::NodeType & | rSlaveNode, | ||
const DoubleVariableType & | rSlaveVariable, | ||
const double | Weight, | ||
const double | Constant, | ||
IndexType | ThisIndex = 0 |
||
) |
ModelPart::NodeType::Pointer Kratos::ModelPart::CreateNewNode | ( | ModelPart::IndexType | Id, |
double | x, | ||
double | y, | ||
double | z, | ||
double * | pThisData, | ||
ModelPart::IndexType | ThisIndex = 0 |
||
) |
ModelPart::NodeType::Pointer Kratos::ModelPart::CreateNewNode | ( | ModelPart::IndexType | Id, |
double | x, | ||
double | y, | ||
double | z, | ||
ModelPart::IndexType | ThisIndex = 0 |
||
) |
ModelPart::NodeType::Pointer Kratos::ModelPart::CreateNewNode | ( | ModelPart::IndexType | NodeId, |
ModelPart::NodeType const & | rSourceNode, | ||
ModelPart::IndexType | ThisIndex = 0 |
||
) |
ModelPart::NodeType::Pointer Kratos::ModelPart::CreateNewNode | ( | int | Id, |
double | x, | ||
double | y, | ||
double | z, | ||
VariablesList::Pointer | pNewVariablesList, | ||
ModelPart::IndexType | ThisIndex = 0 |
||
) |
Inserts a node in the current mesh.
Inserts a node in the mesh with ThisIndex.
ModelPart::PropertiesType::Pointer Kratos::ModelPart::CreateNewProperties | ( | IndexType | PropertiesId, |
IndexType | MeshIndex = 0 |
||
) |
Creates a new property in the current mesh.
If the property is already existing it will crash
PropertiesId | The Id of the new property |
MeshIndex | The Id of the mesh (0 by default) |
ModelPart::IndexType Kratos::ModelPart::CreateSolutionStep | ( | ) |
ModelPart & Kratos::ModelPart::CreateSubModelPart | ( | std::string const & | NewSubModelPartName | ) |
Creates a new sub model part with given name. Does nothing if a sub model part with the same name exist.
ModelPart::IndexType Kratos::ModelPart::CreateTimeStep | ( | double | NewTime | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
This method returns the full name of the model part (including the parents model parts)
This is evaluated in a recursive way
|
inline |
Get geometry map container.
|
inline |
Get geometry map container.
|
inline |
Begin geometry iterator.
|
inline |
Begin geometry const iterator.
|
inline |
End geometry iterator.
|
inline |
End geometry const iterator.
|
inline |
This method gets the suffer size of the model part database.
|
inline |
|
inline |
|
inline |
Returns a reference condition corresponding to it's identifier
|
inline |
|
inline |
Returns a reference element corresponding to it's identifier
|
inline |
|
inline |
Returns a reference geometry corresponding to the id.
|
inline |
Returns a const reference geometry corresponding to the id.
|
inline |
Returns a reference geometry corresponding to the name.
|
inline |
Returns a const reference geometry corresponding to the name.
ModelPart::MasterSlaveConstraintType & Kratos::ModelPart::GetMasterSlaveConstraint | ( | ModelPart::IndexType | MasterSlaveConstraintId, |
IndexType | ThisIndex = 0 |
||
) |
Returns a reference MasterSlaveConstraint corresponding to it's identifier
const ModelPart::MasterSlaveConstraintType & Kratos::ModelPart::GetMasterSlaveConstraint | ( | ModelPart::IndexType | MasterSlaveConstraintId, |
IndexType | ThisIndex = 0 |
||
) | const |
Returns a const reference MasterSlaveConstraint corresponding to it's identifier
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns a reference node corresponding to it's identifier
|
inline |
ModelPart & Kratos::ModelPart::GetParentModelPart | ( | ) |
Returns a reference to the Parent ModelPart Returns a reference to itself if it is not a SubModelPart
const ModelPart & Kratos::ModelPart::GetParentModelPart | ( | ) | const |
Returns a reference to the Parent ModelPart (const version) Returns a reference to itself if it is not a SubModelPart
|
inline |
|
inline |
Properties & Kratos::ModelPart::GetProperties | ( | const std::string & | rAddress, |
IndexType | MeshIndex = 0 |
||
) |
Returns the sub Properties::Pointer corresponding to it's address.
If the property is not existing it will return a warning
rAddress | The text that indicates the structure of subproperties to iterate and found the property of interest |
MeshIndex | The Id of the mesh (0 by default) |
const Properties & Kratos::ModelPart::GetProperties | ( | const std::string & | rAddress, |
IndexType | MeshIndex = 0 |
||
) | const |
Returns the sub Properties::Pointer corresponding to it's address (const version)
If the property is not existing it will return a warning
rAddress | The text that indicates the structure of subproperties to iterate and found the property of interest |
MeshIndex | The Id of the mesh (0 by default) |
ModelPart::PropertiesType & Kratos::ModelPart::GetProperties | ( | IndexType | PropertiesId, |
IndexType | MeshIndex = 0 |
||
) |
Returns the Properties::Pointer corresponding to it's identifier.
If the property is not existing it will return a warning
PropertiesId | The Id of the new property |
MeshIndex | The Id of the mesh (0 by default) |
const ModelPart::PropertiesType & Kratos::ModelPart::GetProperties | ( | IndexType | PropertiesId, |
IndexType | MeshIndex = 0 |
||
) | const |
Returns the Properties::Pointer corresponding to it's identifier (const version)
If the property is not existing it will return a warning
PropertiesId | The Id of the new property |
MeshIndex | The Id of the mesh (0 by default) |
ModelPart & Kratos::ModelPart::GetRootModelPart | ( | ) |
this function gives back the "root" model part, that is the model_part that has no father (non-const version)
const ModelPart & Kratos::ModelPart::GetRootModelPart | ( | ) | const |
this function gives back the "root" model part, that is the model_part that has no father (const version)
ModelPart & Kratos::ModelPart::GetSubModelPart | ( | std::string const & | SubModelPartName | ) |
Returns a reference to the sub_model part with given string name Throws if it does not exist.
const ModelPart & Kratos::ModelPart::GetSubModelPart | ( | std::string const & | SubModelPartName | ) | const |
Returns a reference to the sub_model part with given string name Throws if it does not exist.
std::vector< std::string > Kratos::ModelPart::GetSubModelPartNames | ( | ) | const |
This method returns the names of submodelparts.
Returns a reference to Table corresponding to the identifier
|
inline |
Returns if the Condition corresponding to it's identifier exists
Returns if the Element corresponding to it's identifier exists
Checks if has geometry by id.
|
inline |
Checks if has geometry by name.
|
inline |
Returns if the MasterSlaveConstraint corresponding to it's identifier exists.
MasterSlaveConstraintId | The ID of master-slave constraint |
ThisIndex | The mesh index |
|
inline |
Returns if the Node corresponding to it's identifier exists
bool Kratos::ModelPart::HasProperties | ( | const std::string & | rAddress, |
IndexType | MeshIndex = 0 |
||
) | const |
Returns if the sub Properties corresponding to it's address exists.
rAddress | The text that indicates the structure of subproperties to iterate and found the property of interest |
ThisIndex | The index identifying the mesh |
Returns if the Properties corresponding to it's identifier exists.
PropertiesId | The id identifying the property |
ThisIndex | The index identifying the mesh |
bool Kratos::ModelPart::HasSubModelPart | ( | std::string const & | ThisSubModelPartName | ) | const |
Returns whether this ModelPart has a SubModelPart with a given name
|
overridevirtual |
Turn back information as a string.
Reimplemented from Kratos::DataValueContainer.
|
inline |
|
inline |
Kratos::ModelPart::KRATOS_DEFINE_LOCAL_FLAG | ( | ALL_ENTITIES | ) |
Kratos::ModelPart::KRATOS_DEFINE_LOCAL_FLAG | ( | OVERWRITE_ENTITIES | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
ModelPart::SizeType Kratos::ModelPart::NumberOfProperties | ( | IndexType | ThisIndex = 0 | ) | const |
Returns the number of properties of the mesh.
ThisIndex | The index identifying the mesh |
|
inline |
|
inline |
void Kratos::ModelPart::OverwriteSolutionStepData | ( | IndexType | SourceSolutionStepIndex, |
IndexType | DestinationSourceSolutionStepIndex | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the Condition::Pointer corresponding to it's identifier
|
inline |
Returns the Condition::Pointer corresponding to it's identifier
|
inline |
Returns the Element::Pointer corresponding to it's identifier
|
inline |
Returns the Element::Pointer corresponding to it's identifier
|
inline |
Returns the Geometry::Pointer corresponding to the Id.
|
inline |
Returns the const Geometry::Pointer corresponding to the Id.
|
inline |
Returns the Geometry::Pointer corresponding to the name.
|
inline |
Returns the Geometry::Pointer corresponding to the name.
ModelPart::MasterSlaveConstraintType::Pointer Kratos::ModelPart::pGetMasterSlaveConstraint | ( | ModelPart::IndexType | MasterSlaveConstraintId, |
IndexType | ThisIndex = 0 |
||
) |
Returns the MasterSlaveConstraint::Pointer corresponding to it's identifier
|
inline |
|
inline |
|
inline |
|
inline |
Returns the Node::Pointer corresponding to it's identifier
Returns the Node::Pointer corresponding to it's identifier
|
inline |
|
inline |
Properties::Pointer Kratos::ModelPart::pGetProperties | ( | const std::string & | rAddress, |
IndexType | MeshIndex = 0 |
||
) |
Returns the sub Properties::Pointer corresponding to it's address.
If the property is not existing it will return a warning
rAddress | The text that indicates the structure of subproperties to iterate and found the property of interest |
MeshIndex | The Id of the mesh (0 by default) |
const Properties::Pointer Kratos::ModelPart::pGetProperties | ( | const std::string & | rAddress, |
IndexType | MeshIndex = 0 |
||
) | const |
Returns the sub Properties::Pointer corresponding to it's address (const version)
If the property is not existing it will return a warning
rAddress | The text that indicates the structure of subproperties to iterate and found the property of interest |
MeshIndex | The Id of the mesh (0 by default) |
ModelPart::PropertiesType::Pointer Kratos::ModelPart::pGetProperties | ( | IndexType | PropertiesId, |
IndexType | MeshIndex = 0 |
||
) |
Returns the Properties::Pointer corresponding to it's identifier.
If the property is not existing it will return a warning
PropertiesId | The Id of the new property |
MeshIndex | The Id of the mesh (0 by default) |
const ModelPart::PropertiesType::Pointer Kratos::ModelPart::pGetProperties | ( | IndexType | PropertiesId, |
IndexType | MeshIndex = 0 |
||
) | const |
Returns the Properties::Pointer corresponding to it's identifier (const version)
If the property is not existing it will return a warning
PropertiesId | The Id of the new property |
MeshIndex | The Id of the mesh (0 by default) |
ModelPart * Kratos::ModelPart::pGetSubModelPart | ( | std::string const & | SubModelPartName | ) |
Returns a raw pointer to the sub_model part with given string name Throws if it does not exist.
|
inline |
Returns the Table::Pointer corresponding to it's identifier
|
inline |
|
inline |
|
overridevirtual |
Print object's data.
Reimplemented from Kratos::DataValueContainer.
|
virtual |
Print object's data.
|
overridevirtual |
Print information about this object.
Reimplemented from Kratos::DataValueContainer.
|
virtual |
Print information about this object.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool Kratos::ModelPart::RecursivelyHasProperties | ( | IndexType | PropertiesId, |
IndexType | MeshIndex = 0 |
||
) | const |
Returns if the Properties corresponding to it's identifier exists in any of the model parts.
PropertiesId | The id identifying the property |
ThisIndex | The index identifying the mesh |
ATTENTION: this function does not touch the coordinates of the nodes. It just resets the database values to the values at the beginning of the time step
void Kratos::ModelPart::RemoveCondition | ( | ModelPart::ConditionType & | ThisCondition, |
ModelPart::IndexType | ThisIndex = 0 |
||
) |
Remove given condition from mesh with ThisIndex in this modelpart and all its subs.
void Kratos::ModelPart::RemoveCondition | ( | ConditionType::Pointer | pThisCondition, |
IndexType | ThisIndex = 0 |
||
) |
Remove given condition from mesh with ThisIndex in this modelpart and all its subs.
void Kratos::ModelPart::RemoveCondition | ( | ModelPart::IndexType | ConditionId, |
ModelPart::IndexType | ThisIndex = 0 |
||
) |
Remove the condition with given Id from mesh with ThisIndex in this modelpart and all its subs.
void Kratos::ModelPart::RemoveConditionFromAllLevels | ( | ModelPart::ConditionType & | ThisCondition, |
ModelPart::IndexType | ThisIndex = 0 |
||
) |
Remove given condition from mesh with ThisIndex in parents, itself and children.
void Kratos::ModelPart::RemoveConditionFromAllLevels | ( | ConditionType::Pointer | pThisCondition, |
IndexType | ThisIndex = 0 |
||
) |
Remove given condition from mesh with ThisIndex in parents, itself and children.
void Kratos::ModelPart::RemoveConditionFromAllLevels | ( | ModelPart::IndexType | ConditionId, |
ModelPart::IndexType | ThisIndex = 0 |
||
) |
Remove the condition with given Id from mesh with ThisIndex in parents, itself and children.
void Kratos::ModelPart::RemoveConditions | ( | Flags | IdentifierFlag = TO_ERASE | ) |
erases all elements identified by "IdentifierFlag" by removing the pointer. Pointers are erased from this level downwards nodes will be automatically destructured when no pointer is left to them
void Kratos::ModelPart::RemoveConditionsFromAllLevels | ( | Flags | IdentifierFlag = TO_ERASE | ) |
erases all elements identified by "IdentifierFlag" by removing the pointer. Pointers will be erase from all levels nodes will be automatically destructured when no pointer is left to them
void Kratos::ModelPart::RemoveElement | ( | ModelPart::ElementType & | ThisElement, |
ModelPart::IndexType | ThisIndex = 0 |
||
) |
Remove given element from mesh with ThisIndex in this modelpart and all its subs.
void Kratos::ModelPart::RemoveElement | ( | ElementType::Pointer | pThisElement, |
IndexType | ThisIndex = 0 |
||
) |
Remove given element from mesh with ThisIndex in this modelpart and all its subs.
void Kratos::ModelPart::RemoveElement | ( | ModelPart::IndexType | ElementId, |
ModelPart::IndexType | ThisIndex = 0 |
||
) |
Remove the element with given Id from mesh with ThisIndex in this modelpart and all its subs.
void Kratos::ModelPart::RemoveElementFromAllLevels | ( | ModelPart::ElementType & | ThisElement, |
ModelPart::IndexType | ThisIndex = 0 |
||
) |
Remove given element from mesh with ThisIndex in parents, itself and children.
void Kratos::ModelPart::RemoveElementFromAllLevels | ( | ElementType::Pointer | pThisElement, |
IndexType | ThisIndex = 0 |
||
) |
Remove given element from mesh with ThisIndex in parents, itself and children.
void Kratos::ModelPart::RemoveElementFromAllLevels | ( | ModelPart::IndexType | ElementId, |
ModelPart::IndexType | ThisIndex = 0 |
||
) |
Remove the element with given Id from mesh with ThisIndex in parents, itself and children.
void Kratos::ModelPart::RemoveElements | ( | Flags | IdentifierFlag = TO_ERASE | ) |
erases all elements identified by "IdentifierFlag" by removing the pointer. Pointers are erased from this level downwards nodes will be automatically destructured when no pointer is left to them
void Kratos::ModelPart::RemoveElementsFromAllLevels | ( | Flags | IdentifierFlag = TO_ERASE | ) |
erases all elements identified by "IdentifierFlag" by removing the pointer. Pointers will be erase from all levels nodes will be automatically destructured when no pointer is left to them
void Kratos::ModelPart::RemoveGeometry | ( | IndexType | GeometryId | ) |
Removes a geometry by id.
void Kratos::ModelPart::RemoveGeometry | ( | std::string | GeometryName | ) |
Removes a geometry by name.
void Kratos::ModelPart::RemoveGeometryFromAllLevels | ( | IndexType | GeometryId | ) |
Removes a geometry by id from all root and sub model parts.
void Kratos::ModelPart::RemoveGeometryFromAllLevels | ( | std::string | GeometryName | ) |
Removes a geometry by name from all root and sub model parts.
void Kratos::ModelPart::RemoveMasterSlaveConstraint | ( | ModelPart::IndexType | MasterSlaveConstraintId, |
IndexType | ThisIndex = 0 |
||
) |
Remove the master-slave constraint with given Id from mesh with ThisIndex in this modelpart and all its subs.
Remove the master-slave constraint with given Id from this modelpart and all its subs.
void Kratos::ModelPart::RemoveMasterSlaveConstraint | ( | ModelPart::MasterSlaveConstraintType & | ThisMasterSlaveConstraint, |
IndexType | ThisIndex = 0 |
||
) |
Remove given master-slave constraint from mesh with ThisIndex in this modelpart and all its subs.
Remove given master-slave constraint from this modelpart and all its subs.
void Kratos::ModelPart::RemoveMasterSlaveConstraintFromAllLevels | ( | ModelPart::IndexType | MasterSlaveConstraintId, |
IndexType | ThisIndex = 0 |
||
) |
Remove the master-slave constraint with given Id from mesh with ThisIndex in parents, itself and children.
Remove the master-slave constraint with given Id from mesh with ThisIndex in parents, itself and children.
void Kratos::ModelPart::RemoveMasterSlaveConstraintFromAllLevels | ( | ModelPart::MasterSlaveConstraintType & | ThisMasterSlaveConstraint, |
IndexType | ThisIndex = 0 |
||
) |
Remove given master-slave constraint from mesh with ThisIndex in parents, itself and children.
Remove given master-slave constraint from mesh with ThisIndex in parents, itself and children.
void Kratos::ModelPart::RemoveMasterSlaveConstraints | ( | Flags | IdentifierFlag = TO_ERASE | ) |
It erases all constraints identified by "IdentifierFlag" by removing the pointer.
Pointers are erased from this level downwards nodes will be automatically destructured when no pointer is left to them
IdentifierFlag | The flag that identifies the constraints to remove |
void Kratos::ModelPart::RemoveMasterSlaveConstraintsFromAllLevels | ( | Flags | IdentifierFlag = TO_ERASE | ) |
It erases all constraints identified by "IdentifierFlag" by removing the pointer.
Pointers will be erase from all levels nodes will be automatically destructured when no pointer is left to them
IdentifierFlag | The flag that identifies the constraints to remove |
void Kratos::ModelPart::RemoveNode | ( | ModelPart::IndexType | NodeId, |
ModelPart::IndexType | ThisIndex = 0 |
||
) |
Remove the node with given Id from mesh with ThisIndex in this modelpart and all its subs.
void Kratos::ModelPart::RemoveNode | ( | ModelPart::NodeType & | ThisNode, |
ModelPart::IndexType | ThisIndex = 0 |
||
) |
Remove given node from mesh with ThisIndex in this modelpart and all its subs.
void Kratos::ModelPart::RemoveNode | ( | NodeType::Pointer | pThisNode, |
IndexType | ThisIndex = 0 |
||
) |
Remove given node from mesh with ThisIndex in this modelpart and all its subs.
void Kratos::ModelPart::RemoveNodeFromAllLevels | ( | ModelPart::IndexType | NodeId, |
ModelPart::IndexType | ThisIndex = 0 |
||
) |
Remove the node with given Id from mesh with ThisIndex in parents and children.
Remove the node with given Id from mesh with ThisIndex in parents, itself and children.
void Kratos::ModelPart::RemoveNodeFromAllLevels | ( | ModelPart::NodeType & | ThisNode, |
ModelPart::IndexType | ThisIndex = 0 |
||
) |
Remove given node from current mesh with ThisIndex in parents and children.
Remove given node from mesh with ThisIndex in parents, itself and children.
void Kratos::ModelPart::RemoveNodeFromAllLevels | ( | NodeType::Pointer | pThisNode, |
IndexType | ThisIndex = 0 |
||
) |
Remove given node from current mesh with ThisIndex in parents and children.
void Kratos::ModelPart::RemoveNodes | ( | Flags | IdentifierFlag = TO_ERASE | ) |
erases all nodes identified by "IdentifierFlag" by removing the pointer. Pointers are erased from this level downwards nodes will be automatically destructured when no pointer is left to them
void Kratos::ModelPart::RemoveNodesFromAllLevels | ( | Flags | IdentifierFlag = TO_ERASE | ) |
erases all nodes identified by "IdentifierFlag" by removing the pointer. Pointers will be erase from all levels nodes will be automatically destructured when no pointer is left to them
void Kratos::ModelPart::RemoveProperties | ( | ModelPart::IndexType | PropertiesId, |
IndexType | ThisIndex = 0 |
||
) |
Remove the Properties with given Id from mesh with ThisIndex in this modelpart and all its subs.
void Kratos::ModelPart::RemoveProperties | ( | ModelPart::PropertiesType & | ThisProperties, |
ModelPart::IndexType | ThisIndex = 0 |
||
) |
Remove given Properties from mesh with ThisIndex in this modelpart and all its subs.
void Kratos::ModelPart::RemoveProperties | ( | PropertiesType::Pointer | pThisProperties, |
IndexType | ThisIndex = 0 |
||
) |
Remove given Properties from mesh with ThisIndex in this modelpart and all its subs.
void Kratos::ModelPart::RemovePropertiesFromAllLevels | ( | ModelPart::IndexType | PropertiesId, |
IndexType | ThisIndex = 0 |
||
) |
Remove the Properties with given Id from mesh with ThisIndex in parents, itself and children.
void Kratos::ModelPart::RemovePropertiesFromAllLevels | ( | ModelPart::PropertiesType & | ThisProperties, |
ModelPart::IndexType | ThisIndex = 0 |
||
) |
Remove given Properties from mesh with ThisIndex in parents, itself and children.
void Kratos::ModelPart::RemovePropertiesFromAllLevels | ( | PropertiesType::Pointer | pThisProperties, |
IndexType | ThisIndex = 0 |
||
) |
Remove given Properties from mesh with ThisIndex in parents, itself and children.
void Kratos::ModelPart::RemoveSubModelPart | ( | ModelPart & | ThisSubModelPart | ) |
Remove given sub model part.
void Kratos::ModelPart::RemoveSubModelPart | ( | std::string const & | ThisSubModelPartName | ) |
Remove a sub modelpart with given name.
void Kratos::ModelPart::RemoveTable | ( | ModelPart::IndexType | TableId | ) |
void Kratos::ModelPart::RemoveTableFromAllLevels | ( | ModelPart::IndexType | TableId | ) |
Remove the Table with given Id from current mesh in parents, itself and all children.
void Kratos::ModelPart::Reset | ( | ) |
Function to wipe a model part clean Variables list, buffer size are not preserved
|
inline |
temporarily renamed Properties() function because the declaration of Properties() here violates the declaration of Properties() in properties.h (janosch, in agreement with pooyan)
void Kratos::ModelPart::SetBufferSize | ( | ModelPart::IndexType | NewBufferSize | ) |
This method sets the suffer size of the model part database.
Must be called on root model part, otherwise error is thrown
NewBufferSize | The new buffer size to be set |
|
inline |
|
inline |
|
inline |
void Kratos::ModelPart::SetNodalSolutionStepVariablesList | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
TODO replace this "model" for real one once available in kratos core.
|
friend |