NeoPZ
|
#include <CedricTest.h>
Public Member Functions | |
TCedricTest () | |
void | GenerateNodes (TPZGeoMesh *gmesh, int64_t nelem) |
TPZGeoMesh * | HexahedralMesh (int64_t nelem, int MaterialId) |
TPZGeoMesh * | PyramidalAndTetrahedralMesh (int64_t nelem, int MaterialId) |
TPZGeoMesh * | TetrahedralMesh (int64_t nelem, int MaterialId) |
TPZGeoMesh * | TetrahedralMeshUsingRefinement (int64_t nelem, int MaterialId) |
int | AddBoundaryElements (TPZGeoMesh *gmesh) |
TPZCompMesh * | GenerateCompMesh (TPZGeoMesh *gmesh) |
void | CreateCondensedElements (TPZCompMesh *cmesh) |
void | UnwrapElements (TPZCompMesh *cmesh) |
void | DeformGMesh (TPZGeoMesh &gmesh) |
Deform the geometric mesh according to the coordinates of fDeformed. More... | |
void | CheckConsistency (TPZGeoMesh *mesh) |
verify if the faces without neighbour should be orthogonal to the main planes More... | |
void | Run (int nsubdivisions, int geocase, int POrder, int MaterialId, std::ostream &out=std::cout) |
void | LoadInterpolation (TPZCompMesh *cmesh) |
void | InterpolationError (int nsubdivisions, int geocase, int MaterialId, std::ostream &out) |
Static Public Member Functions | |
static REAL | fx (REAL x, REAL x0, REAL eps) |
static REAL | dfx (REAL x, REAL x0, REAL eps) |
static REAL | d2fx (REAL x, REAL x0, REAL eps) |
static void | Exact (const TPZVec< REAL > &x, TPZVec< STATE > &func, TPZFMatrix< STATE > &deriv) |
Public Attributes | |
TPZGeoMesh | fDeformed |
Static Public Attributes | |
static TPZManVector< REAL, 3 > | fX0 |
static TPZManVector< REAL, 3 > | fEps |
To numerical test from Cedric+Renato publication
Definition at line 11 of file CedricTest.h.
TCedricTest::TCedricTest | ( | ) |
Definition at line 46 of file CedricTest.cpp.
References TPZGeoMesh::CreateGeoElement(), ECube, fDeformed, TPZGeoMesh::NodeVec(), and TPZAdmChunkVector< T, EXP >::Resize().
int TCedricTest::AddBoundaryElements | ( | TPZGeoMesh * | gmesh | ) |
Definition at line 724 of file CedricTest.cpp.
References TPZGeoElSide::Dimension(), TPZGeoMesh::ElementVec(), TPZGeoElSide::Neighbour(), TPZGeoMesh::NElements(), and TPZGeoEl::NSides().
Referenced by InterpolationError(), and Run().
void TCedricTest::CheckConsistency | ( | TPZGeoMesh * | mesh | ) |
verify if the faces without neighbour should be orthogonal to the main planes
Definition at line 652 of file CedricTest.cpp.
References TPZGeoElSide::CenterPoint(), DebugStop, TPZGeoElSide::Dimension(), TPZGeoMesh::ElementVec(), fabs, TPZGeoElSide::Jacobian(), TPZGeoElSide::Neighbour(), TPZGeoMesh::NElements(), TPZGeoEl::NSides(), pzgeom::tol, and TPZGeoElSide::X().
Referenced by Exact(), InterpolationError(), and Run().
void TCedricTest::CreateCondensedElements | ( | TPZCompMesh * | cmesh | ) |
Definition at line 745 of file CedricTest.cpp.
References TPZElementGroup::AddElement(), TPZCompMesh::ComputeNodElCon(), TPZGeoElSide::ConnectedCompElementList(), DebugStop, TPZGeoEl::Dimension(), TPZGeoElSide::Element(), TPZCompElSide::Element(), TPZCompMesh::ElementVec(), TPZCompMesh::NElements(), TPZGeoEl::NSides(), TPZCompEl::Reference(), TPZCompElSide::Reference(), TPZGeoEl::SideDimension(), and TPZVec< T >::size().
Referenced by Run().
|
inlinestatic |
Definition at line 51 of file CedricTest.h.
References pow().
Referenced by ForceFunction::Execute().
void TCedricTest::DeformGMesh | ( | TPZGeoMesh & | gmesh | ) |
Deform the geometric mesh according to the coordinates of fDeformed.
Definition at line 79 of file CedricTest.cpp.
References TPZGeoMesh::ElementVec(), fDeformed, TPZChunkVector< T, EXP >::NElements(), and TPZGeoMesh::NodeVec().
Referenced by Exact(), InterpolationError(), and Run().
|
inlinestatic |
|
inlinestatic |
Definition at line 67 of file CedricTest.h.
References CheckConsistency(), DeformGMesh(), dfx(), fx(), InterpolationError(), LoadInterpolation(), and Run().
Referenced by InterpolationError(), LoadInterpolation(), and Run().
|
inlinestatic |
Definition at line 36 of file CedricTest.h.
References exp.
Referenced by Exact(), and ForceFunction::Execute().
TPZCompMesh * TCedricTest::GenerateCompMesh | ( | TPZGeoMesh * | gmesh | ) |
Inserting material
Inserting boundary condition - Dirichlet with value 0.0
Constructing computational mesh
Definition at line 700 of file CedricTest.cpp.
References TPZCompMesh::AutoBuild(), bc, TPZCompMesh::InsertMaterialObject(), TPZCompMesh::SetDimModel(), and TPZMaterial::SetForcingFunction().
Referenced by InterpolationError(), and Run().
void TCedricTest::GenerateNodes | ( | TPZGeoMesh * | gmesh, |
int64_t | nelem | ||
) |
Definition at line 441 of file CedricTest.cpp.
References TPZGeoMesh::NodeVec(), and TPZAdmChunkVector< T, EXP >::Resize().
Referenced by HexahedralMesh(), PyramidalAndTetrahedralMesh(), and TetrahedralMesh().
TPZGeoMesh * TCedricTest::HexahedralMesh | ( | int64_t | nelem, |
int | MaterialId | ||
) |
Constructing geometrical mesh depends on type of element wished.
Definition at line 617 of file CedricTest.cpp.
References TPZGeoMesh::BuildConnectivity(), TPZGeoMesh::CreateGeoElement(), ECube, GenerateNodes(), and LOGPZ_DEBUG.
Referenced by InterpolationError(), and Run().
void TCedricTest::InterpolationError | ( | int | nsubdivisions, |
int | geocase, | ||
int | MaterialId, | ||
std::ostream & | out | ||
) |
Generating computational mesh
Cleaning allocated meshes
Definition at line 92 of file CedricTest.cpp.
References AddBoundaryElements(), bc, TPZCompMesh::Block(), CheckConsistency(), TPZCompMesh::ConnectVec(), DeformGMesh(), TPZCompMesh::ElementVec(), Exact(), fabs, GenerateCompMesh(), TPZGeoNode::GetCoordinates(), HexahedralMesh(), LoadInterpolation(), LOGPZ_DEBUG, TPZCompEl::Material(), TPZGeoEl::NCornerNodes(), TPZCompMesh::NElements(), TPZCompMesh::NEquations(), TPZGeoEl::NodePtr(), TPZAnalysis::PostProcessError(), TPZGeoMesh::Print(), PyramidalAndTetrahedralMesh(), TPZCompEl::Reference(), TPZConnect::SequenceNumber(), TPZAnalysis::SetExact(), TPZCompEl::SetgOrder(), TPZAnalysis::Solution(), TPZCompMesh::Solution(), TetrahedralMesh(), TetrahedralMeshUsingRefinement(), and val().
Referenced by Exact().
void TCedricTest::LoadInterpolation | ( | TPZCompMesh * | cmesh | ) |
Definition at line 220 of file CedricTest.cpp.
References TPZCompMesh::Block(), TPZCompEl::Connect(), TPZGeoMesh::ElementVec(), Exact(), TPZGeoNode::GetCoordinates(), TPZGeoEl::NCornerNodes(), TPZGeoMesh::NElements(), TPZGeoEl::NodePtr(), TPZCompMesh::Reference(), TPZGeoEl::Reference(), TPZConnect::SequenceNumber(), TPZCompMesh::Solution(), and TPZFMatrix< TVar >::Zero().
Referenced by Exact(), and InterpolationError().
TPZGeoMesh * TCedricTest::PyramidalAndTetrahedralMesh | ( | int64_t | nelem, |
int | MaterialId | ||
) |
Definition at line 457 of file CedricTest.cpp.
References TPZGeoMesh::BuildConnectivity(), TPZGeoMesh::CreateGeoElement(), EPiramide, ETetraedro, GenerateNodes(), LOGPZ_DEBUG, and TPZVec< T >::resize().
Referenced by InterpolationError(), and Run().
void TCedricTest::Run | ( | int | nsubdivisions, |
int | geocase, | ||
int | POrder, | ||
int | MaterialId, | ||
std::ostream & | out = std::cout |
||
) |
Generating computational mesh
Variable names for post processing
Cleaning allocated meshes
Definition at line 246 of file CedricTest.cpp.
References AddBoundaryElements(), CheckConsistency(), CreateCondensedElements(), TPZAnalysis::DefineGraphMesh(), DeformGMesh(), TPZCompMesh::Dimension(), ECholesky, Exact(), GenerateCompMesh(), clarg::argT< T >::get_value(), HexahedralMesh(), LOGPZ_DEBUG, TPZCompMesh::NElements(), TPZCompMesh::NEquations(), nthreads, TPZAnalysis::PostProcess(), TPZAnalysis::PostProcessError(), TPZGeoMesh::Print(), TPZCompMesh::Print(), TPZStack< T, NumExtAlloc >::Push(), PyramidalAndTetrahedralMesh(), TPZAnalysis::Run(), TPZStepSolver< TVar >::SetDirect(), TPZAnalysis::SetExact(), TPZStructMatrixBase::SetNumThreads(), TPZAnalysis::SetSolver(), TPZAnalysis::SetStructuralMatrix(), TetrahedralMesh(), TetrahedralMeshUsingRefinement(), and UnwrapElements().
TPZGeoMesh * TCedricTest::TetrahedralMesh | ( | int64_t | nelem, |
int | MaterialId | ||
) |
Definition at line 502 of file CedricTest.cpp.
References TPZGeoMesh::BuildConnectivity(), TPZGeoMesh::CreateGeoElement(), ETetraedro, GenerateNodes(), LOGPZ_DEBUG, and UniformRefinement().
Referenced by InterpolationError(), and Run().
TPZGeoMesh * TCedricTest::TetrahedralMeshUsingRefinement | ( | int64_t | nelem, |
int | MaterialId | ||
) |
Definition at line 544 of file CedricTest.cpp.
References TPZAdmChunkVector< T, EXP >::AllocateNewElement(), TPZGeoMesh::BuildConnectivity(), co, TPZGeoMesh::CreateGeoElement(), ETetraedro, TPZGeoMesh::NodeVec(), nodind, and UniformRefinement().
Referenced by InterpolationError(), and Run().
void TCedricTest::UnwrapElements | ( | TPZCompMesh * | cmesh | ) |
Definition at line 789 of file CedricTest.cpp.
References cond, TPZCompMesh::ElementVec(), TPZChunkVector< T, EXP >::NElements(), TPZCondensedCompEl::Unwrap(), and TPZElementGroup::Unwrap().
Referenced by Run().
TPZGeoMesh TCedricTest::fDeformed |
Definition at line 16 of file CedricTest.h.
Referenced by DeformGMesh(), and TCedricTest().
|
static |
Definition at line 14 of file CedricTest.h.
Referenced by ForceFunction::Execute().
|
static |
Definition at line 14 of file CedricTest.h.
Referenced by ForceFunction::Execute().