50 "Show high frequency energy of Jacobian.");
67 int nfields =
m_f->m_variables.size();
68 m_f->m_variables.push_back(
"jacenergy");
70 if (
m_f->m_exp[0]->GetNumElmts() == 0)
75 int NumHomogeneousDir =
m_f->m_numHomogeneousDir;
80 m_f->m_exp.resize(nfields + 1);
81 exp =
m_f->AppendExpList(NumHomogeneousDir);
82 m_f->m_exp[nfields] = exp;
93 for (
int i = 0; i < exp->GetExpSize(); ++i)
103 int coeffoffset = exp->GetCoeff_Offset(i);
119 NekDouble jacmeasure = jacmax / jacmin - 1.0;
127 Elmt->FwdTrans(phys, tmp = coeffs + coeffoffset);
129 exp->BwdTrans(coeffs, phys);
FieldSharedPtr m_f
Field object.
std::map< std::string, ConfigOption > m_config
List of configuration values.
ProcessJacobianEnergy(FieldSharedPtr f)
static ModuleKey className
static std::shared_ptr< Module > create(FieldSharedPtr f)
Creates an instance of this class.
void v_Process(po::variables_map &vm) override
Write mesh to output file.
~ProcessJacobianEnergy() override
Abstract base class for processing modules.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
SpatialDomains::GeomFactors * GetGeomFactors() const
Get the geometric factors for this object, generating them if required.
const Array< OneD, const NekDouble > GetJac()
Return the Jacobian of the mapping.
GeomType GetGtype()
Returns whether the geometry is regular or deformed.
The base class for all shapes.
int GetTotPoints() const
This function returns the total number of quadrature points used in the element.
std::shared_ptr< Field > FieldSharedPtr
std::pair< ModuleType, std::string > ModuleKey
ModuleFactory & GetModuleFactory()
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
@ eRegular
Geometry is straight-sided with constant geometric factors.
@ eDeformed
Geometry is curved or has non-constant factors.
std::shared_ptr< StdExpansion > StdExpansionSharedPtr
T Vmin(int n, const T *x, const int incx)
Return the minimum element in x - called vmin to avoid conflict with min.
void Fill(int n, const T alpha, T *x, const int incx)
Fill a vector with a constant value.
T Vmax(int n, const T *x, const int incx)
Return the maximum element in x – called vmax to avoid conflict with max.
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)
Represents a command-line configuration option.