MFEM  v4.1.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Attributes | List of all members
mfem::DiscreteAdaptTC Class Reference

#include <tmop.hpp>

Inheritance diagram for mfem::DiscreteAdaptTC:
[legend]
Collaboration diagram for mfem::DiscreteAdaptTC:
[legend]

Public Member Functions

 DiscreteAdaptTC (TargetType ttype)
 
virtual ~DiscreteAdaptTC ()
 
virtual void SetSerialDiscreteTargetSpec (GridFunction &tspec)
 
virtual void SetParDiscreteTargetSpec (ParGridFunction &tspec)
 
void UpdateTargetSpecification (const Vector &new_x)
 
void SetAdaptivityEvaluator (AdaptivityEvaluator *ae)
 
virtual void ComputeElementTargets (int e_id, const FiniteElement &fe, const IntegrationRule &ir, const Vector &elfun, DenseTensor &Jtr) const
 Given an element and quadrature rule, computes ref->target transformation Jacobians for each quadrature point in the element. The physical positions of the element's nodes are given by elfun. Note that this function assumes that UpdateTargetSpecification() has been called with the position vector corresponding to elfun. More...
 
- Public Member Functions inherited from mfem::TargetConstructor
 TargetConstructor (TargetType ttype)
 Constructor for use in serial. More...
 
 TargetConstructor (TargetType ttype, MPI_Comm mpicomm)
 Constructor for use in parallel. More...
 
virtual ~TargetConstructor ()
 
void SetNodes (const GridFunction &n)
 Set the nodes to be used in the target-matrix construction. More...
 
void SetVolumeScale (double vol_scale)
 Used by target type IDEAL_SHAPE_EQUAL_SIZE. The default volume scale is 1. More...
 

Protected Attributes

Vector target_spec
 
const FiniteElementSpacetspec_fes
 
AdaptivityEvaluatoradapt_eval
 
- Protected Attributes inherited from mfem::TargetConstructor
const GridFunctionnodes
 
double avg_volume
 
double volume_scale
 
const TargetType target_type
 
MPI_Comm comm
 

Additional Inherited Members

- Public Types inherited from mfem::TargetConstructor
enum  TargetType {
  IDEAL_SHAPE_UNIT_SIZE, IDEAL_SHAPE_EQUAL_SIZE, IDEAL_SHAPE_GIVEN_SIZE, GIVEN_SHAPE_AND_SIZE,
  GIVEN_FULL
}
 Target-matrix construction algorithms supported by this class. More...
 
- Protected Member Functions inherited from mfem::TargetConstructor
bool Parallel () const
 
bool Parallel () const
 
void ComputeAvgVolume () const
 

Detailed Description

Definition at line 674 of file tmop.hpp.

Constructor & Destructor Documentation

mfem::DiscreteAdaptTC::DiscreteAdaptTC ( TargetType  ttype)
inline

Definition at line 689 of file tmop.hpp.

virtual mfem::DiscreteAdaptTC::~DiscreteAdaptTC ( )
inlinevirtual

Definition at line 693 of file tmop.hpp.

Member Function Documentation

void mfem::DiscreteAdaptTC::ComputeElementTargets ( int  e_id,
const FiniteElement fe,
const IntegrationRule ir,
const Vector elfun,
DenseTensor Jtr 
) const
virtual

Given an element and quadrature rule, computes ref->target transformation Jacobians for each quadrature point in the element. The physical positions of the element's nodes are given by elfun. Note that this function assumes that UpdateTargetSpecification() has been called with the position vector corresponding to elfun.

Reimplemented from mfem::TargetConstructor.

Definition at line 967 of file tmop.cpp.

void mfem::DiscreteAdaptTC::SetAdaptivityEvaluator ( AdaptivityEvaluator ae)
inline

Definition at line 704 of file tmop.hpp.

void mfem::DiscreteAdaptTC::SetParDiscreteTargetSpec ( ParGridFunction tspec)
virtual

Definition at line 925 of file tmop.cpp.

void mfem::DiscreteAdaptTC::SetSerialDiscreteTargetSpec ( GridFunction tspec)
virtual

Definition at line 943 of file tmop.cpp.

void mfem::DiscreteAdaptTC::UpdateTargetSpecification ( const Vector new_x)

Used to update the target specification after the mesh has changed. The new mesh positions are given by new_x.

Definition at line 960 of file tmop.cpp.

Member Data Documentation

AdaptivityEvaluator* mfem::DiscreteAdaptTC::adapt_eval
protected

Definition at line 686 of file tmop.hpp.

Vector mfem::DiscreteAdaptTC::target_spec
protected

Definition at line 679 of file tmop.hpp.

const FiniteElementSpace* mfem::DiscreteAdaptTC::tspec_fes
protected

Definition at line 682 of file tmop.hpp.


The documentation for this class was generated from the following files: