|
Nektar++
|
Class for iterative elastic system, in which linear elasticity is applied in substeps to attain a large deformation. More...
#include <IterativeElasticSystem.h>
Static Public Member Functions | |
| static EquationSystemSharedPtr | create (const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph) |
| Creates an instance of this class. More... | |
Static Public Member Functions inherited from Nektar::LinearElasticSystem | |
| static EquationSystemSharedPtr | create (const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph) |
| Creates an instance of this class. More... | |
Static Public Attributes | |
| static std::string | className |
| Name of class. More... | |
Static Public Attributes inherited from Nektar::LinearElasticSystem | |
| static std::string | className |
| Name of class. More... | |
Protected Member Functions | |
| IterativeElasticSystem (const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph) | |
| virtual void | v_InitObject (bool DeclareFields=true) override |
| Set up the linear elasticity system. More... | |
| virtual void | v_GenerateSummary (SolverUtils::SummaryList &s) override |
| Generate summary at runtime. More... | |
| virtual void | v_DoSolve () override |
| Solve elliptic linear elastic system. More... | |
| void | WriteGeometry (const int i) |
| Write out a file in serial or directory in parallel containing new mesh geometry. More... | |
Protected Member Functions inherited from Nektar::LinearElasticSystem | |
| LinearElasticSystem (const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph) | |
| Default constructor. More... | |
| virtual void | v_InitObject (bool DeclareFields=true) override |
| Set up the linear elasticity system. More... | |
| virtual void | v_GenerateSummary (SolverUtils::SummaryList &s) override |
| Generate summary at runtime. More... | |
| virtual void | v_DoSolve () override |
| Solve elliptic linear elastic system. More... | |
| virtual void | v_ExtraFldOutput (std::vector< Array< OneD, NekDouble > > &fieldcoeffs, std::vector< std::string > &variables) override |
Protected Member Functions inherited from Nektar::SolverUtils::EquationSystem | |
| SOLVER_UTILS_EXPORT | EquationSystem (const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph) |
| Initialises EquationSystem class members. More... | |
| virtual SOLVER_UTILS_EXPORT void | v_InitObject (bool DeclareFeld=true) |
| Initialisation object for EquationSystem. More... | |
| virtual SOLVER_UTILS_EXPORT void | v_DoInitialise (bool dumpInitialConditions=true) |
| Virtual function for initialisation implementation. More... | |
| virtual SOLVER_UTILS_EXPORT void | v_DoSolve () |
| Virtual function for solve implementation. More... | |
| virtual SOLVER_UTILS_EXPORT NekDouble | v_LinfError (unsigned int field, const Array< OneD, NekDouble > &exactsoln=NullNekDouble1DArray) |
| Virtual function for the L_inf error computation between fields and a given exact solution. More... | |
| virtual SOLVER_UTILS_EXPORT NekDouble | v_L2Error (unsigned int field, const Array< OneD, NekDouble > &exactsoln=NullNekDouble1DArray, bool Normalised=false) |
| Virtual function for the L_2 error computation between fields and a given exact solution. More... | |
| virtual SOLVER_UTILS_EXPORT void | v_TransCoeffToPhys () |
| Virtual function for transformation to physical space. More... | |
| virtual SOLVER_UTILS_EXPORT void | v_TransPhysToCoeff () |
| Virtual function for transformation to coefficient space. More... | |
| virtual SOLVER_UTILS_EXPORT void | v_GenerateSummary (SummaryList &l) |
| Virtual function for generating summary information. More... | |
| virtual SOLVER_UTILS_EXPORT void | v_SetInitialConditions (NekDouble initialtime=0.0, bool dumpInitialConditions=true, const int domain=0) |
| virtual SOLVER_UTILS_EXPORT void | v_EvaluateExactSolution (unsigned int field, Array< OneD, NekDouble > &outfield, const NekDouble time) |
| virtual SOLVER_UTILS_EXPORT void | v_Output (void) |
| virtual SOLVER_UTILS_EXPORT MultiRegions::ExpListSharedPtr | v_GetPressure (void) |
| virtual SOLVER_UTILS_EXPORT bool | v_NegatedOp (void) |
| Virtual function to identify if operator is negated in DoSolve. More... | |
| virtual SOLVER_UTILS_EXPORT void | v_ExtraFldOutput (std::vector< Array< OneD, NekDouble > > &fieldcoeffs, std::vector< std::string > &variables) |
Protected Attributes | |
| int | m_numSteps |
| Number of steps to split deformation across. More... | |
| bool | m_repeatBCs |
| Flag determining whether to repeat boundary conditions. More... | |
| Array< OneD, Array< OneD, Array< OneD, NekDouble > > > | m_savedBCs |
| Storage for boundary conditions. More... | |
| std::vector< int > | m_toDeform |
| Vector of boundary regions to deform. More... | |
Protected Attributes inherited from Nektar::LinearElasticSystem | |
| NekDouble | m_nu |
| Poisson ratio. More... | |
| NekDouble | m_E |
| Young's modulus. More... | |
| NekDouble | m_beta |
| Parameter dictating amount of thermal stress to add. More... | |
| CoupledAssemblyMapSharedPtr | m_assemblyMap |
| Assembly map for the coupled (u,v,w) system. More... | |
| DNekScalBlkMatSharedPtr | m_schurCompl |
| Schur complement boundary-boundary matrix. More... | |
| DNekScalBlkMatSharedPtr | m_BinvD |
| Matrix of elemental \( B^{-1}D \) components. More... | |
| DNekScalBlkMatSharedPtr | m_C |
| Matrix of elemental \( C \) components. More... | |
| DNekScalBlkMatSharedPtr | m_Dinv |
| Matrix of elemental \( D^{-1} \) components. More... | |
| Array< OneD, Array< OneD, unsigned int > > | m_bmap |
| Boundary maps for each of the fields. More... | |
| Array< OneD, Array< OneD, unsigned int > > | m_imap |
| Interior maps for each of the fields. More... | |
| Array< OneD, Array< OneD, NekDouble > > | m_temperature |
| Storage for the temperature terms. More... | |
| Array< OneD, Array< OneD, Array< OneD, NekDouble > > > | m_stress |
| Storage for the thermal stress terms. More... | |
Protected Attributes inherited from Nektar::SolverUtils::EquationSystem | |
| LibUtilities::CommSharedPtr | m_comm |
| Communicator. More... | |
| bool | m_verbose |
| LibUtilities::SessionReaderSharedPtr | m_session |
| The session reader. More... | |
| std::map< std::string, SolverUtils::SessionFunctionSharedPtr > | m_sessionFunctions |
| Map of known SessionFunctions. More... | |
| LibUtilities::FieldIOSharedPtr | m_fld |
| Field input/output. More... | |
| Array< OneD, MultiRegions::ExpListSharedPtr > | m_fields |
| Array holding all dependent variables. More... | |
| SpatialDomains::BoundaryConditionsSharedPtr | m_boundaryConditions |
| Pointer to boundary conditions object. More... | |
| SpatialDomains::MeshGraphSharedPtr | m_graph |
| Pointer to graph defining mesh. More... | |
| std::string | m_sessionName |
| Name of the session. More... | |
| NekDouble | m_time |
| Current time of simulation. More... | |
| int | m_initialStep |
| Number of the step where the simulation should begin. More... | |
| NekDouble | m_fintime |
| Finish time of the simulation. More... | |
| NekDouble | m_timestep |
| Time step size. More... | |
| NekDouble | m_lambda |
| Lambda constant in real system if one required. More... | |
| NekDouble | m_checktime |
| Time between checkpoints. More... | |
| NekDouble | m_lastCheckTime |
| NekDouble | m_TimeIncrementFactor |
| int | m_nchk |
| Number of checkpoints written so far. More... | |
| int | m_steps |
| Number of steps to take. More... | |
| int | m_checksteps |
| Number of steps between checkpoints. More... | |
| int | m_infosteps |
| Number of time steps between outputting status information. More... | |
| int | m_iterPIT = 0 |
| Number of parallel-in-time time iteration. More... | |
| int | m_windowPIT = 0 |
| Index of windows for parallel-in-time time iteration. More... | |
| int | m_spacedim |
| Spatial dimension (>= expansion dim). More... | |
| int | m_expdim |
| Expansion dimension. More... | |
| bool | m_singleMode |
| Flag to determine if single homogeneous mode is used. More... | |
| bool | m_halfMode |
| Flag to determine if half homogeneous mode is used. More... | |
| bool | m_multipleModes |
| Flag to determine if use multiple homogenenous modes are used. More... | |
| bool | m_useFFT |
| Flag to determine if FFT is used for homogeneous transform. More... | |
| bool | m_homogen_dealiasing |
| Flag to determine if dealiasing is used for homogeneous simulations. More... | |
| bool | m_specHP_dealiasing |
| Flag to determine if dealisising is usde for the Spectral/hp element discretisation. More... | |
| enum MultiRegions::ProjectionType | m_projectionType |
| Type of projection; e.g continuous or discontinuous. More... | |
| Array< OneD, Array< OneD, NekDouble > > | m_traceNormals |
| Array holding trace normals for DG simulations in the forwards direction. More... | |
| Array< OneD, bool > | m_checkIfSystemSingular |
| Flag to indicate if the fields should be checked for singularity. More... | |
| LibUtilities::FieldMetaDataMap | m_fieldMetaDataMap |
| Map to identify relevant solver info to dump in output fields. More... | |
| Array< OneD, NekDouble > | m_movingFrameVelsxyz |
| Moving frame of reference velocities. More... | |
| Array< OneD, NekDouble > | m_movingFrameTheta |
| Moving frame of reference angles with respect to the. More... | |
| boost::numeric::ublas::matrix< NekDouble > | m_movingFrameProjMat |
| Projection matrix for transformation between inertial and moving. More... | |
| int | m_NumQuadPointsError |
| Number of Quadrature points used to work out the error. More... | |
| enum HomogeneousType | m_HomogeneousType |
| NekDouble | m_LhomX |
| physical length in X direction (if homogeneous) More... | |
| NekDouble | m_LhomY |
| physical length in Y direction (if homogeneous) More... | |
| NekDouble | m_LhomZ |
| physical length in Z direction (if homogeneous) More... | |
| int | m_npointsX |
| number of points in X direction (if homogeneous) More... | |
| int | m_npointsY |
| number of points in Y direction (if homogeneous) More... | |
| int | m_npointsZ |
| number of points in Z direction (if homogeneous) More... | |
| int | m_HomoDirec |
| number of homogenous directions More... | |
Friends | |
| class | MemoryManager< IterativeElasticSystem > |
| Class may only be instantiated through the MemoryManager. More... | |
Class for iterative elastic system, in which linear elasticity is applied in substeps to attain a large deformation.
Definition at line 50 of file IterativeElasticSystem.h.
|
protected |
Definition at line 57 of file IterativeElasticSystem.cpp.
|
inlinestatic |
Creates an instance of this class.
Definition at line 57 of file IterativeElasticSystem.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), and CellMLToNektar.cellml_metadata::p.
Solve elliptic linear elastic system.
The solve proceeds as follows:
Reimplemented from Nektar::LinearElasticSystem.
Definition at line 127 of file IterativeElasticSystem.cpp.
References Nektar::SolverUtils::EquationSystem::m_fields, Nektar::SolverUtils::EquationSystem::m_graph, m_numSteps, m_repeatBCs, m_savedBCs, Nektar::SolverUtils::EquationSystem::m_session, Nektar::SolverUtils::EquationSystem::m_time, m_toDeform, Nektar::LibUtilities::ReduceMax, Nektar::GlobalMapping::UpdateGeometry(), Nektar::LinearElasticSystem::v_DoSolve(), Vmath::Vcopy(), and WriteGeometry().
|
overrideprotectedvirtual |
Generate summary at runtime.
Reimplemented from Nektar::LinearElasticSystem.
Definition at line 122 of file IterativeElasticSystem.cpp.
References Nektar::LinearElasticSystem::v_GenerateSummary().
|
overrideprotectedvirtual |
Set up the linear elasticity system.
This routine loads the E and nu variables from the session file, creates a coupled assembly map and creates containers for the statically condensed block matrix system.
Reimplemented from Nektar::LinearElasticSystem.
Definition at line 64 of file IterativeElasticSystem.cpp.
References ASSERTL0, Nektar::SolverUtils::EquationSystem::m_comm, Nektar::SolverUtils::EquationSystem::m_fields, m_numSteps, m_repeatBCs, m_savedBCs, Nektar::SolverUtils::EquationSystem::m_session, m_toDeform, Nektar::LibUtilities::ReduceMax, Vmath::Smul(), Nektar::LinearElasticSystem::v_InitObject(), and Vmath::Vcopy().
|
protected |
Write out a file in serial or directory in parallel containing new mesh geometry.
Definition at line 219 of file IterativeElasticSystem.cpp.
References CellMLToNektar.pycml::format, Nektar::SolverUtils::EquationSystem::m_fields, Nektar::SolverUtils::EquationSystem::m_session, and Nektar::LibUtilities::PortablePath().
Referenced by v_DoSolve().
|
friend |
Class may only be instantiated through the MemoryManager.
Definition at line 1 of file IterativeElasticSystem.h.
|
static |
Name of class.
Definition at line 69 of file IterativeElasticSystem.h.
|
protected |
Number of steps to split deformation across.
Definition at line 73 of file IterativeElasticSystem.h.
Referenced by v_DoSolve(), and v_InitObject().
|
protected |
Flag determining whether to repeat boundary conditions.
Definition at line 75 of file IterativeElasticSystem.h.
Referenced by v_DoSolve(), and v_InitObject().
|
protected |
Storage for boundary conditions.
Definition at line 77 of file IterativeElasticSystem.h.
Referenced by v_DoSolve(), and v_InitObject().
|
protected |
Vector of boundary regions to deform.
Definition at line 79 of file IterativeElasticSystem.h.
Referenced by v_DoSolve(), and v_InitObject().