Browse files

Merge pull request #12582 from SudiptaBiswas/prdc_refpt

Add reference point for global displacement calculation
  • Loading branch information...
dschwen committed Dec 4, 2018
2 parents f575b16 + ed094ef commit 8da1c2dadab3b043b6f7b80e22995b4dbf66691c
@@ -19,10 +19,12 @@ The total strain $\epsilon_{ij}^{total}$ at any point is calculated considering
where $\epsilon_{ij}$ are the [strain components](/ calculated from the displacement gradients, $\epsilon_{ij}^g$ are the global strain components, and $\epsilon_{ij}^0$ are the eigen strain components. An additional [displacement field](/ $\boldsymbol u^g$ is generated to visualize the effect of the global strain as
\begin{equation} \label{eq:dispg_eq}
\boldsymbol {u}^g = \boldsymbol {r} \boldsymbol{\epsilon}^g
\boldsymbol {u}^g = (\boldsymbol {r} - \boldsymbol {r}_{0}) \boldsymbol{\epsilon}^g
where $\boldsymbol{r}$ is the position vector and $\boldsymbol{\epsilon}^g$ is the global strain tensor. Then, the total displacement is represented as
where $\boldsymbol {r}$ is the position vector, $\boldsymbol{r}_{0}$ is the location of the reference point, and $\boldsymbol{\epsilon}^g$ is the global strain tensor. The reference point could be any fixed ($\boldsymbol {u}^{total} = \boldsymbol {0}$) point in the domain. For maintaining periodicity, it is recommended to fix the center point of the simulation domain as the reference point.
The total displacement is represented as
\begin{equation} \label{eq:disp_eq}
\boldsymbol {u}^{total} = \boldsymbol {u} + \boldsymbol {u}^g
@@ -35,6 +35,7 @@ class GlobalDisplacementAux : public AuxKernel
const GlobalStrainUserObjectInterface & _pst;
const VectorValue<bool> & _periodic_dir;
const Point _ref_point;
const unsigned int _dim;
const unsigned int _ndisp;
@@ -33,6 +33,9 @@ validParams<GlobalDisplacementAux>()
"output_global_displacement", false, "Option to output global displacement only");
"The name of the GlobalStrainUserObject");
Point(0, 0, 0),
"The coordinate of the center/fixed point of the simulation");
// Default this object to get executed before the displaced mesh update.
// This way the AuxVars set by this object can be used as mesh displacements.
@@ -48,6 +51,7 @@ GlobalDisplacementAux::GlobalDisplacementAux(const InputParameters & parameters)
@@ -78,7 +82,7 @@ GlobalDisplacementAux::computeValue()
for (unsigned int var = 0; var < _ndisp; ++var)
strain(dir, var) = 0.0;
const RealVectorValue & global_disp = strain * (*_current_node);
const RealVectorValue & global_disp = strain * ((*_current_node) - _ref_point);
if (_output_global_disp)
return global_disp(_component);

0 comments on commit 8da1c2d

Please sign in to comment.