#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 78 of file SpringElement.hpp.
78 {
80
83
85 }
#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 PetscOptionsBegin(PETSC_COMM_WORLD, "", "Problem", "none");
73
74 PetscOptionsEnd();
76 }
◆ setBlocks()
MoFEMErrorCode MetaSpringBC::DataAtIntegrationPtsSprings::setBlocks |
( |
| ) |
|
|
inline |
Definition at line 87 of file SpringElement.hpp.
87 {
89
91 if (
bit->getName().compare(0, 9,
"SPRING_BC") == 0) {
92
93 const int id =
bit->getMeshsetId();
97
98 std::vector<double> attributes;
99 bit->getAttributes(attributes);
100 if (attributes.size() < 2) {
102 "Springs should have 2 attributes but there is %ld",
103 attributes.size());
104 }
106 mapSpring[id].springStiffnessNormal = attributes[0];
107 mapSpring[id].springStiffnessTangent = attributes[1];
108
109
110 MOFEM_LOG_C(
"WORLD", Sev::verbose,
"\nSpring block %d\n",
id);
111 MOFEM_LOG_C(
"WORLD", Sev::verbose,
"\tNormal stiffness %3.4g\n",
112 attributes[0]);
113 MOFEM_LOG_C(
"WORLD", Sev::verbose,
"\tTangent stiffness %3.4g\n",
114 attributes[1]);
115 }
116 }
117
119 }
#define MOFEM_LOG_C(channel, severity, format,...)
@ MOFEM_ATOM_TEST_INVALID
#define CHKERR
Inline error check.
#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: