Chaste Commit::ca8ccdedf819b6e02855bc0e8e6f50bdecbc5208
|
#include <VtkNonlinearElasticitySolutionWriter.hpp>
Public Member Functions | |
VtkNonlinearElasticitySolutionWriter (AbstractNonlinearElasticitySolver< DIM > &rSolver) | |
void | SetWriteElementWiseStrains (StrainType strainType) |
void | Write () |
Private Attributes | |
AbstractNonlinearElasticitySolver< DIM > * | mpSolver |
bool | mWriteElementWiseStrains |
StrainType | mElementWiseStrainType |
std::vector< c_matrix< double, DIM, DIM > > | mTensorData |
Friends | |
class | TestVtkNonlinearElasticitySolutionWriter |
Class for write mechanics solutions to .vtu file (for visualisation in Paraview), including displacement, pressure if incompressible simulation, different strains, and (in future) stresses.
Definition at line 46 of file VtkNonlinearElasticitySolutionWriter.hpp.
|
inline |
Constructor
rSolver | mechanics solver which performed the calculation |
Definition at line 72 of file VtkNonlinearElasticitySolutionWriter.hpp.
|
inline |
Set write strains for each element. Can write any of: F = dx/dX, C = F^T F, E = 1/2 (C-I)
strainType | Which strain to write, choose one of: DEFORMATION_GRADIENT_F, DEFORMATION_TENSOR_C, LAGRANGE_STRAIN_E |
Definition at line 82 of file VtkNonlinearElasticitySolutionWriter.hpp.
References VtkNonlinearElasticitySolutionWriter< DIM >::mElementWiseStrainType, and VtkNonlinearElasticitySolutionWriter< DIM >::mWriteElementWiseStrains.
void VtkNonlinearElasticitySolutionWriter< DIM >::Write | ( | ) |
Write the .vtu file
Definition at line 40 of file VtkNonlinearElasticitySolutionWriter.cpp.
References VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::AddCellData(), VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::AddPointData(), VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::AddTensorCellData(), EXCEPTION, NEVER_REACHED, and VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMesh().
|
friend |
Definition at line 48 of file VtkNonlinearElasticitySolutionWriter.hpp.
|
private |
What type of strain to write for each element, from: F = dx/dX, C = F^T F, E = 1/2 (C-I)
Definition at line 56 of file VtkNonlinearElasticitySolutionWriter.hpp.
Referenced by VtkNonlinearElasticitySolutionWriter< DIM >::SetWriteElementWiseStrains().
|
private |
Pointer to the mechanics solver which performed the calculation
Definition at line 52 of file VtkNonlinearElasticitySolutionWriter.hpp.
|
private |
Tensor data to be written to the .vtu file. This is a member variable only for testing reasons.
Definition at line 59 of file VtkNonlinearElasticitySolutionWriter.hpp.
|
private |
Whether to write strains for each element
Definition at line 54 of file VtkNonlinearElasticitySolutionWriter.hpp.
Referenced by VtkNonlinearElasticitySolutionWriter< DIM >::SetWriteElementWiseStrains().