103 GeometryType::Pointer pGeometry
106 KRATOS_WARNING_FIRST_N(
"PairedCondition", 10) <<
"This class pairs two geometries, please use the other constructor (the one with two geometries as input)" << std::endl;
112 GeometryType::Pointer pGeometry,
113 PropertiesType::Pointer pProperties
116 KRATOS_WARNING_FIRST_N(
"PairedCondition", 10) <<
"This class pairs two geometries, please use the other constructor (the one with two geometries as input)" << std::endl;
122 GeometryType::Pointer pGeometry,
123 PropertiesType::Pointer pProperties,
124 GeometryType::Pointer pPairedGeometry
148 void Initialize(
const ProcessInfo& rCurrentProcessInfo)
override;
160 void InitializeNonLinearIteration(
const ProcessInfo& rCurrentProcessInfo)
override;
169 Condition::Pointer
Create(
172 PropertiesType::Pointer pProperties
182 Condition::Pointer
Create(
184 GeometryType::Pointer pGeometry,
185 PropertiesType::Pointer pProperties
196 virtual Condition::Pointer
Create(
198 GeometryType::Pointer pGeometry,
199 PropertiesType::Pointer pProperties,
200 GeometryType::Pointer pPairedGeom
213 return this->GetGeometry().pGetGeometryPart(CouplingGeometryType::Master);
222 return this->GetGeometry().pGetGeometryPart(CouplingGeometryType::Master);
231 return this->GetGeometry().pGetGeometryPart(CouplingGeometryType::Slave);
240 return this->GetGeometry().pGetGeometryPart(CouplingGeometryType::Slave);
249 return this->GetGeometry().
GetGeometryPart(CouplingGeometryType::Master);
258 return this->GetGeometry().
GetGeometryPart(CouplingGeometryType::Master);
267 return this->GetGeometry().
GetGeometryPart(CouplingGeometryType::Slave);
276 return this->GetGeometry().
GetGeometryPart(CouplingGeometryType::Slave);
285 noalias(mPairedNormal) = rPairedNormal;
294 return mPairedNormal;
306 std::string
Info()
const override
308 std::stringstream buffer;
309 buffer <<
"PairedCondition #" << this->Id();
316 rOStream <<
"PairedCondition #" << this->Id();
323 this->GetParentGeometry().PrintData(rOStream);
324 this->GetPairedGeometry().PrintData(rOStream);
370 void save(
Serializer& rSerializer)
const override;
Base class for all Conditions.
Definition: condition.h:59
The CouplingGeometry connects two or more geometries of different types and entities.
Definition: coupling_geometry.h:41
std::size_t IndexType
Definition: flags.h:74
This defines the geometrical object, base definition of the element and condition entities.
Definition: geometrical_object.h:58
Geometry base class.
Definition: geometry.h:71
virtual GeometryType & GetGeometryPart(const IndexType Index)
Used for composite geometries. It returns the the geometry part, corresponding to the Index.
Definition: geometry.h:1060
This is a base class for the conditions paired.
Definition: paired_condition.h:53
PairedCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties, GeometryType::Pointer pPairedGeometry)
Definition: paired_condition.h:120
PairedCondition(PairedCondition const &rOther)
Copy constructor.
Definition: paired_condition.h:130
BaseType::GeometryType::Pointer GeometryPointerType
Geometry pointer type definition.
Definition: paired_condition.h:83
~PairedCondition() override
Destructor.
array_1d< double, 3 > const & GetPairedNormal() const
This method returns the paired normal.
Definition: paired_condition.h:292
GeometryType const & GetPairedGeometry() const
This method returns the paired geometry (constant version)
Definition: paired_condition.h:274
void SetPairedNormal(const array_1d< double, 3 > &rPairedNormal)
This method sets the paired normal.
Definition: paired_condition.h:283
GeometryType::Pointer pGetPairedGeometry()
This method returns the paired geometry.
Definition: paired_condition.h:229
std::string Info() const override
Turn back information as a string.
Definition: paired_condition.h:306
GeometryType const & GetParentGeometry() const
This method returns the parent geometry (constant version)
Definition: paired_condition.h:256
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(PairedCondition)
Counted pointer of PairedCondition.
GeometryType::Pointer pGetParentGeometry()
This method returns the parent geometry.
Definition: paired_condition.h:211
PairedCondition()
Default constructor.
Definition: paired_condition.h:96
GeometryType & GetPairedGeometry()
This method returns the paired geometry.
Definition: paired_condition.h:265
GeometryType & GetParentGeometry()
This method returns the parent geometry.
Definition: paired_condition.h:247
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: paired_condition.h:314
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: paired_condition.h:320
PairedCondition(IndexType NewId, GeometryType::Pointer pGeometry)
Definition: paired_condition.h:101
GeometryType::Pointer const pGetPairedGeometry() const
This method returns the paired geometry (constant version)
Definition: paired_condition.h:238
BaseType::PropertiesType::Pointer PropertiesPointerType
Properties pointer type definition.
Definition: paired_condition.h:89
PairedCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
Definition: paired_condition.h:110
GeometryType::Pointer const pGetParentGeometry() const
This method returns the parent geometry (constant version)
Definition: paired_condition.h:220
Point class.
Definition: point.h:59
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.h:72
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
#define KRATOS_WARNING_FIRST_N(label, logger_count)
Definition: logger.h:272
std::size_t IndexType
Definition: binary_expression.cpp:25
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
void InitializeSolutionStep(ConstructionUtility &rThisUtil, std::string ThermalSubModelPartName, std::string MechanicalSubModelPartName, std::string HeatFluxSubModelPartName, std::string HydraulicPressureSubModelPartName, bool thermal_conditions, bool mechanical_conditions, int phase)
Definition: add_custom_utilities_to_python.cpp:45
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
KratosZeroVector< double > ZeroVector
Definition: amatrix_interface.h:561
ModelPart::NodesContainerType NodesArrayType
Definition: gid_gauss_point_container.h:42
T & noalias(T &TheMatrix)
Definition: amatrix_interface.h:484
shared_ptr< C > make_shared(Args &&...args)
Definition: smart_pointers.h:40
def load(f)
Definition: ode_solve.py:307