10 #if !defined(KRATOS_SWIMMING_DEM_APPLICATION_H_INCLUDED )
11 #define KRATOS_SWIMMING_DEM_APPLICATION_H_INCLUDED
48 #define SWIMMING_COPY_SECOND_TO_FIRST_3(a, b) a[0] = b[0]; a[1] = b[1]; a[2] = b[2];
49 #define SWIMMING_ADD_SECOND_TO_FIRST(a, b) a[0] += b[0]; a[1] += b[1]; a[2] += b[2];
50 #define SWIMMING_SET_COMPONENTS_TO_ZERO_3(a) a[0] = 0.0; a[1] = 0.0; a[2] = 0.0;
51 #define SWIMMING_SET_COMPONENTS_TO_ZERO_3x3(a) a[0][0] = 0.0; a[0][1] = 0.0; a[0][2] = 0.0; a[1][0] = 0.0; a[1][1] = 0.0; a[1][2] = 0.0; a[2][0] = 0.0; a[2][1] = 0.0; a[2][2] = 0.0;
52 #define SWIMMING_MULTIPLY_BY_SCALAR_3(a, b) a[0] = b * a[0]; a[1] = b * a[1]; a[2] = b * a[2];
53 #define SWIMMING_MODULUS_3(a) std::sqrt(a[0] * a[0] + a[1] * a[1] + a[2] * a[2])
54 #define SWIMMING_INNER_PRODUCT_3(a, b) (a[0] * b[0] + a[1] * b[1] + a[2] * b[2])
55 #define SWIMMING_SET_TO_CROSS_OF_FIRST_TWO_3(a, b, c) c[0] = a[1] * b[2] - a[2] * b[1]; c[1] = a[2] * b[0] - a[0] * b[2]; c[2] = a[0] * b[1] - a[1] * b[0];
56 #define SWIMMING_POW_2(a) (a * a)
57 #define SWIMMING_POW_3(a) (a * a * a)
58 #define SWIMMING_POW_4(a) (a * a * a * a)
59 #define SWIMMING_POW_5(a) (a * a * a * a * a)
60 #define SWIMMING_POW_6(a) (a * a * a * a * a * a)
61 #define SWIMMING_POW_7(a) (a * a * a * a * a * a * a)
77 void Register()
override;
80 std::string
Info()
const override
82 return "KratosSwimmingDEMApplication";
86 void PrintInfo(std::ostream& rOStream)
const override
93 void PrintData(std::ostream& rOStream)
const override
95 rOStream <<
"Variables:" << std::endl;
97 rOStream << std::endl;
98 rOStream <<
"Elements:" << std::endl;
100 rOStream << std::endl;
101 rOStream <<
"Conditions:" << std::endl;
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
This class defines the interface with kernel for all applications in Kratos.
Definition: kratos_application.h:91
Definition: kratos_components.h:253
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: kratos_components.h:403
Definition: swimming_DEM_application.h:64
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: swimming_DEM_application.h:86
KRATOS_CLASS_POINTER_DEFINITION(KratosSwimmingDEMApplication)
Pointer definition of KratosSwimmingDEMApplication.
std::string Info() const override
Turn back information as a string.
Definition: swimming_DEM_application.h:80
virtual ~KratosSwimmingDEMApplication()
Destructor.
Definition: swimming_DEM_application.h:74
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: swimming_DEM_application.h:93
Short class definition.
Definition: shell_rigid.h:94
Definition: swimming_particle.h:28
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
KRATOS_API_EXTERN template class KratosComponents< Condition >
Definition: condition.h:1191
KRATOS_API_EXTERN template class KratosComponents< Element >
Definition: element.h:1240