#include <users_modules/basic_finite_elements/src/SpringElement.hpp>
Definition at line 32 of file SpringElement.hpp.
◆ DataAtIntegrationPtsSprings()
MetaSpringBC::DataAtIntegrationPtsSprings::DataAtIntegrationPtsSprings |
( |
MoFEM::Interface & |
m_field, |
|
|
double |
scale_stiffness = 1. |
|
) |
| |
|
inline |
Definition at line 63 of file SpringElement.hpp.
65
67 CHKERRABORT(PETSC_COMM_WORLD,
ierr);
68 }
static PetscErrorCode ierr
◆ getBlockData()
Definition at line 79 of file SpringElement.hpp.
79 {
81
84
86 }
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
◆ getParameters()
MoFEMErrorCode MetaSpringBC::DataAtIntegrationPtsSprings::getParameters |
( |
| ) |
|
|
inline |
Definition at line 70 of file SpringElement.hpp.
70 {
72 CHKERR PetscOptionsBegin(PETSC_COMM_WORLD,
"",
"Problem",
"none");
73
74 ierr = PetscOptionsEnd();
77 }
#define CHKERR
Inline error check.
◆ setBlocks()
MoFEMErrorCode MetaSpringBC::DataAtIntegrationPtsSprings::setBlocks |
( |
| ) |
|
|
inline |
Definition at line 88 of file SpringElement.hpp.
88 {
90
92 if (
bit->getName().compare(0, 9,
"SPRING_BC") == 0) {
93
94 const int id =
bit->getMeshsetId();
98
99 std::vector<double> attributes;
100 bit->getAttributes(attributes);
101 if (attributes.size() < 2) {
103 "Springs should have 2 attributes but there is %d",
104 attributes.size());
105 }
107 mapSpring[id].springStiffnessNormal = attributes[0];
108 mapSpring[id].springStiffnessTangent = attributes[1];
109
110
111 MOFEM_LOG_C(
"WORLD", Sev::verbose,
"\nSpring block %d\n",
id);
112 MOFEM_LOG_C(
"WORLD", Sev::verbose,
"\tNormal stiffness %3.4g\n",
113 attributes[0]);
114 MOFEM_LOG_C(
"WORLD", Sev::verbose,
"\tTangent stiffness %3.4g\n",
115 attributes[1]);
116 }
117 }
118
120 }
#define MOFEM_LOG_C(channel, severity, format,...)
@ MOFEM_ATOM_TEST_INVALID
#define _IT_CUBITMESHSETS_BY_SET_TYPE_FOR_LOOP_(MESHSET_MANAGER, CUBITBCTYPE, IT)
Iterator that loops over a specific Cubit MeshSet having a particular BC meshset in a moFEM field.
virtual moab::Interface & get_moab()=0
◆ detHVec
boost::shared_ptr<VectorDouble> MetaSpringBC::DataAtIntegrationPtsSprings::detHVec |
Initial value:=
boost::make_shared<VectorDouble>()
Definition at line 46 of file SpringElement.hpp.
◆ faceRowData
EntitiesFieldData::EntData* MetaSpringBC::DataAtIntegrationPtsSprings::faceRowData |
◆ FMat
boost::shared_ptr<MatrixDouble> MetaSpringBC::DataAtIntegrationPtsSprings::FMat = boost::make_shared<MatrixDouble>() |
◆ forcesOnlyOnEntitiesRow
Range MetaSpringBC::DataAtIntegrationPtsSprings::forcesOnlyOnEntitiesRow |
◆ gradDispPtr
boost::shared_ptr<MatrixDouble> MetaSpringBC::DataAtIntegrationPtsSprings::gradDispPtr |
Initial value:=
boost::make_shared<MatrixDouble>()
Definition at line 35 of file SpringElement.hpp.
◆ hMat
boost::shared_ptr<MatrixDouble> MetaSpringBC::DataAtIntegrationPtsSprings::hMat = boost::make_shared<MatrixDouble>() |
◆ HMat
boost::shared_ptr<MatrixDouble> MetaSpringBC::DataAtIntegrationPtsSprings::HMat = boost::make_shared<MatrixDouble>() |
◆ invHMat
boost::shared_ptr<MatrixDouble> MetaSpringBC::DataAtIntegrationPtsSprings::invHMat |
Initial value:=
boost::make_shared<MatrixDouble>()
Definition at line 44 of file SpringElement.hpp.
◆ mapSpring
◆ mField
◆ normalVector
MatrixDouble MetaSpringBC::DataAtIntegrationPtsSprings::normalVector |
◆ scaleStiffness
double MetaSpringBC::DataAtIntegrationPtsSprings::scaleStiffness |
◆ springStiffnessNormal
double MetaSpringBC::DataAtIntegrationPtsSprings::springStiffnessNormal |
◆ springStiffnessTangent
double MetaSpringBC::DataAtIntegrationPtsSprings::springStiffnessTangent |
◆ tangent1
MatrixDouble MetaSpringBC::DataAtIntegrationPtsSprings::tangent1 |
◆ tangent2
MatrixDouble MetaSpringBC::DataAtIntegrationPtsSprings::tangent2 |
◆ xAtPts
boost::shared_ptr<MatrixDouble> MetaSpringBC::DataAtIntegrationPtsSprings::xAtPts = boost::make_shared<MatrixDouble>() |
◆ xInitAtPts
boost::shared_ptr<MatrixDouble> MetaSpringBC::DataAtIntegrationPtsSprings::xInitAtPts |
Initial value:=
boost::make_shared<MatrixDouble>()
Definition at line 38 of file SpringElement.hpp.
The documentation for this struct was generated from the following file: