14 #if !defined(KRATOS_TRILINOS_PARTITIONED_FSI_UTILITIES_H )
15 #define KRATOS_TRILINOS_PARTITIONED_FSI_UTILITIES_H
25 #include "Epetra_MpiComm.h"
26 #include "Epetra_Map.h"
27 #include "Epetra_Vector.h"
32 #include "../FSIApplication/custom_utilities/partitioned_fsi_utilities.hpp"
60 template<
class TSpace,
class TValueType,
unsigned int TDim >
82 mrEpetraComm(EpetraCommunicator)
104 Epetra_Map InterfaceMap(NumGlobalInterfaceDofs,NumLocalInterfaceDofs,IndexBase,mrEpetraComm);
107 VectorPointerType p_int_vect = Kratos::make_shared<Epetra_FEVector>(InterfaceMap);
110 p_int_vect->PutScalar(0.0);
159 rVector.ReplaceMyValue(LocalRow,0,Value);
164 return rVector[0][LocalRow];
194 const Epetra_MpiComm& mrEpetraComm;
virtual const DataCommunicator & GetDataCommunicator() const
Definition: communicator.cpp:340
MeshType & LocalMesh()
Returns the reference to the mesh storing all local entities.
Definition: communicator.cpp:245
SizeType NumberOfNodes() const
Definition: mesh.h:259
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
Communicator & GetCommunicator()
Definition: model_part.h:1821
Definition: partitioned_fsi_utilities.hpp:67
TSpace::VectorPointerType VectorPointerType
Definition: partitioned_fsi_utilities.hpp:78
TSpace::VectorType VectorType
Definition: partitioned_fsi_utilities.hpp:75
Trilinos version of the partitioned FSI tools.
Definition: trilinos_partitioned_fsi_utilities.h:62
KRATOS_CLASS_POINTER_DEFINITION(TrilinosPartitionedFSIUtilities)
Pointer definition of TrilinosPartitionedFSIUtilities.
TrilinosPartitionedFSIUtilities(const Epetra_MpiComm &EpetraCommunicator)
Default constructor.
Definition: trilinos_partitioned_fsi_utilities.h:81
virtual double GetLocalValue(const VectorType &rVector, int LocalRow) const override
Definition: trilinos_partitioned_fsi_utilities.h:162
TSpace::VectorPointerType VectorPointerType
Definition: trilinos_partitioned_fsi_utilities.h:73
VectorPointerType SetUpInterfaceVector(ModelPart &rInterfaceModelPart) override
Definition: trilinos_partitioned_fsi_utilities.h:98
TSpace::MatrixPointerType MatrixPointerType
Definition: trilinos_partitioned_fsi_utilities.h:74
TSpace::MatrixType MatrixType
Definition: trilinos_partitioned_fsi_utilities.h:71
TSpace::VectorType VectorType
Definition: trilinos_partitioned_fsi_utilities.h:70
virtual ~TrilinosPartitionedFSIUtilities() override
Destructor.
Definition: trilinos_partitioned_fsi_utilities.h:86
virtual void SetLocalValue(VectorType &rVector, int LocalRow, double Value) const override
Definition: trilinos_partitioned_fsi_utilities.h:156
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21