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.
T_normal_flux_condition.h
Go to the documentation of this file.
1 // KRATOS___
2 // // ) )
3 // // ___ ___
4 // // ____ //___) ) // ) )
5 // // / / // // / /
6 // ((____/ / ((____ ((___/ / MECHANICS
7 //
8 // License: geo_mechanics_application/license.txt
9 //
10 //
11 // Main authors: Mohamed Nabi
12 // John van Esch
13 //
14 
15 #pragma once
16 
19 #include "custom_utilities/element_utilities.hpp"
20 #include "includes/serializer.h"
21 
22 namespace Kratos {
23 
24 template <unsigned int TDim, unsigned int TNumNodes>
25 class KRATOS_API(GEO_MECHANICS_APPLICATION) GeoTNormalFluxCondition
26  : public GeoTCondition<TDim, TNumNodes> {
27 public:
31 
33 
35 
36  GeoTNormalFluxCondition(IndexType NewId, GeometryType::Pointer pGeometry);
37 
39  GeometryType::Pointer pGeometry,
40  PropertiesType::Pointer pProperties);
41 
43 
44  Condition::Pointer Create(IndexType NewId,
45  NodesArrayType const& rThisNodes,
46  PropertiesType::Pointer pProperties) const override
47  {
48  return Kratos::make_intrusive<GeoTNormalFluxCondition>(
49  NewId, this->GetGeometry().Create(rThisNodes), pProperties);
50  }
51 
52 protected:
53  void CalculateRHS(Vector& rRightHandSideVector,
54  const ProcessInfo& CurrentProcessInfo) override;
55 
56 private:
57  friend class Serializer;
58 
59  void save(Serializer& rSerializer) const override
60  {
62  }
63 
64  void load(Serializer& rSerializer) override
65  {
67  }
68 };
69 
70 } // namespace Kratos
Base class for all Conditions.
Definition: condition.h:59
std::size_t IndexType
Definition: flags.h:74
Definition: T_condition.h:27
Definition: T_normal_flux_condition.h:26
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(GeoTNormalFluxCondition)
Condition::Pointer Create(IndexType NewId, NodesArrayType const &rThisNodes, PropertiesType::Pointer pProperties) const override
It creates a new condition pointer.
Definition: T_normal_flux_condition.h:44
Geometry base class.
Definition: geometry.h:71
PointerVector< TPointType > PointsArrayType
Definition: geometry.h:118
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
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
def load(f)
Definition: ode_solve.py:307