13 #if !defined(KRATOS_QUADRATURE_POINT_PARTITIONED_GEOMETRY_H_INCLUDED )
14 #define KRATOS_QUADRATURE_POINT_PARTITIONED_GEOMETRY_H_INCLUDED
39 template<
class TPointType,
40 int TWorkingSpaceDimension,
41 int TLocalSpaceDimension = TWorkingSpaceDimension,
42 int TDimension = TLocalSpaceDimension>
83 :
BaseType(ThisPoints, ThisGeometryShapeFunctionContainer)
92 :
BaseType(ThisPoints, ThisGeometryShapeFunctionContainer, pGeometryParent)
123 if (rResult.size1() != working_space_dimension || rResult.size2() != local_space_dimension)
124 rResult.
resize(working_space_dimension, local_space_dimension,
false);
131 IndexType active_point_index = 0;
133 if (r_N(IntegrationPointIndex,
i) >= 0.0) {
135 for (
IndexType k = 0;
k < working_space_dimension; ++
k) {
136 const double value = r_coordinates[
k];
138 rResult(
k,
m) += value * r_shape_functions_gradient_in_integration_point(active_point_index,
m);
140 active_point_index += 1;
167 void save(
Serializer& rSerializer )
const override
184 template<
class TPointType,
185 int TWorkingSpaceDimension,
186 int TLocalSpaceDimension,
189 std::istream& rIStream,
193 template<
class TPointType,
194 int TWorkingSpaceDimension,
195 int TLocalSpaceDimension,
198 std::ostream& rOStream,
202 rOStream << std::endl;
IntegrationMethod
Definition: geometry_data.h:76
Geometry base class.
Definition: geometry.h:71
SizeType PointsNumber() const
Definition: geometry.h:528
std::vector< IntegrationPointType > IntegrationPointsArrayType
Definition: geometry.h:161
SizeType LocalSpaceDimension() const
Definition: geometry.h:1300
std::size_t SizeType
Definition: geometry.h:144
std::size_t IndexType
Definition: geometry.h:137
std::array< Matrix, static_cast< int >GeometryData::IntegrationMethod::NumberOfIntegrationMethods)> ShapeFunctionsValuesContainerType
Definition: geometry.h:172
std::array< IntegrationPointsArrayType, static_cast< int >GeometryData::IntegrationMethod::NumberOfIntegrationMethods)> IntegrationPointsContainerType
Definition: geometry.h:167
SizeType WorkingSpaceDimension() const
Definition: geometry.h:1287
GeometryData::ShapeFunctionsLocalGradientsContainerType ShapeFunctionsLocalGradientsContainerType
Definition: geometry.h:177
Definition: geometry_shape_function_container.h:60
Short class definition.
Definition: integration_point.h:52
Definition: amatrix_interface.h:41
void resize(std::size_t NewSize1, std::size_t NewSize2, bool preserve=0)
Definition: amatrix_interface.h:224
void clear()
Definition: amatrix_interface.h:284
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.h:72
A sinlge quadrature point, that can be used for geometries without a predefined integration scheme,...
Definition: quadrature_point_geometry.h:44
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: quadrature_point_geometry.h:546
const Matrix & ShapeFunctionsValues() const
Definition: geometry.h:3393
QuadraturePointGeometry & operator=(const QuadraturePointGeometry &rOther)
Assignment operator.
Definition: quadrature_point_geometry.h:220
const ShapeFunctionsGradientsType & ShapeFunctionsLocalGradients() const
Definition: geometry.h:3539
JacobiansType & Jacobian(JacobiansType &rResult) const
using base class functions
Definition: geometry.h:2901
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: quadrature_point_geometry.h:552
Definition: quadrature_point_partitioned_geometry.h:45
KRATOS_CLASS_POINTER_DEFINITION(QuadraturePointPartitionedGeometry)
Pointer definition of QuadraturePointGeometry.
virtual Matrix & ShapeFunctionsLocalGradients(Matrix &rResult, const CoordinatesArrayType &rPoint) const override
Definition: quadrature_point_geometry.h:509
GeometryType::IntegrationPointsArrayType IntegrationPointsArrayType
Definition: quadrature_point_partitioned_geometry.h:61
GeometryType::ShapeFunctionsLocalGradientsContainerType ShapeFunctionsLocalGradientsContainerType
Definition: quadrature_point_partitioned_geometry.h:69
GeometryData::ShapeFunctionsGradientsType ShapeFunctionsGradientsType
Definition: quadrature_point_partitioned_geometry.h:63
QuadraturePointPartitionedGeometry(const PointsArrayType &ThisPoints, GeometryShapeFunctionContainerType &ThisGeometryShapeFunctionContainer)
Constructor with points and geometry shape function container.
Definition: quadrature_point_partitioned_geometry.h:80
GeometryType::IntegrationPointsContainerType IntegrationPointsContainerType
Definition: quadrature_point_partitioned_geometry.h:67
QuadraturePointPartitionedGeometry & operator=(const QuadraturePointPartitionedGeometry &rOther)
Assignment operator.
Definition: quadrature_point_partitioned_geometry.h:111
GeometryType::IntegrationPointType IntegrationPointType
Definition: quadrature_point_partitioned_geometry.h:60
GeometryType::PointsArrayType PointsArrayType
Definition: quadrature_point_partitioned_geometry.h:57
QuadraturePointGeometry< TPointType, TWorkingSpaceDimension, TLocalSpaceDimension, TDimension > BaseType
Definition: quadrature_point_partitioned_geometry.h:51
Matrix & Jacobian(Matrix &rResult, IndexType IntegrationPointIndex, GeometryData::IntegrationMethod ThisMethod) const override
Definition: quadrature_point_partitioned_geometry.h:119
Geometry< TPointType > GeometryType
Definition: quadrature_point_partitioned_geometry.h:52
QuadraturePointPartitionedGeometry(const PointsArrayType &ThisPoints, GeometryShapeFunctionContainerType &ThisGeometryShapeFunctionContainer, GeometryType *pGeometryParent)
Constructor with points, geometry shape function container, parent.
Definition: quadrature_point_partitioned_geometry.h:88
QuadraturePointPartitionedGeometry(QuadraturePointPartitionedGeometry const &rOther)
Copy constructor.
Definition: quadrature_point_partitioned_geometry.h:100
Vector & ShapeFunctionsValues(Vector &rResult, const CoordinatesArrayType &rCoordinates) const override
Definition: quadrature_point_geometry.h:497
~QuadraturePointPartitionedGeometry() override=default
Destructor.
GeometryType::CoordinatesArrayType CoordinatesArrayType
Definition: quadrature_point_partitioned_geometry.h:58
GeometryType::IndexType IndexType
Definition: quadrature_point_partitioned_geometry.h:54
GeometryType::SizeType SizeType
Definition: quadrature_point_partitioned_geometry.h:55
GeometryType::ShapeFunctionsValuesContainerType ShapeFunctionsValuesContainerType
Definition: quadrature_point_partitioned_geometry.h:68
GeometryShapeFunctionContainer< GeometryData::IntegrationMethod > GeometryShapeFunctionContainerType
Definition: quadrature_point_partitioned_geometry.h:65
QuadraturePointPartitionedGeometry()
Standard Constructor.
Definition: quadrature_point_partitioned_geometry.h:154
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Short class definition.
Definition: array_1d.h:61
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
def load(f)
Definition: ode_solve.py:307
int k
Definition: quadrature.py:595
int m
Definition: run_marine_rain_substepping.py:8
integer i
Definition: TensorModule.f:17