Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Nektar::Utilities::ProcessDeform Class Reference

#include <ProcessDeform.h>

Inheritance diagram for Nektar::Utilities::ProcessDeform:
Inheritance graph
[legend]
Collaboration diagram for Nektar::Utilities::ProcessDeform:
Collaboration graph
[legend]

Public Member Functions

 ProcessDeform (FieldSharedPtr f)
 
virtual ~ProcessDeform ()
 
virtual void Process (po::variables_map &vm)
 Write mesh to output file. More...
 
- Public Member Functions inherited from Nektar::Utilities::ProcessModule
 ProcessModule ()
 
 ProcessModule (FieldSharedPtr p_f)
 
 ProcessModule (MeshSharedPtr p_m)
 
- Public Member Functions inherited from Nektar::Utilities::Module
 Module (FieldSharedPtr p_f)
 
void RegisterConfig (string key, string value)
 Register a configuration option with a module. More...
 
void PrintConfig ()
 Print out all configuration options for a module. More...
 
void SetDefaults ()
 Sets default configuration options for those which have not been set. More...
 
bool GetRequireEquiSpaced (void)
 
void SetRequireEquiSpaced (bool pVal)
 
void EvaluateTriFieldAtEquiSpacedPts (LocalRegions::ExpansionSharedPtr &exp, const Array< OneD, const NekDouble > &infield, Array< OneD, NekDouble > &outfield)
 
 Module (MeshSharedPtr p_m)
 
virtual void Process ()=0
 
void RegisterConfig (string key, string value)
 
void PrintConfig ()
 
void SetDefaults ()
 
MeshSharedPtr GetMesh ()
 
virtual void ProcessVertices ()
 Extract element vertices. More...
 
virtual void ProcessEdges (bool ReprocessEdges=true)
 Extract element edges. More...
 
virtual void ProcessFaces (bool ReprocessFaces=true)
 Extract element faces. More...
 
virtual void ProcessElements ()
 Generate element IDs. More...
 
virtual void ProcessComposites ()
 Generate composites. More...
 
virtual void ClearElementLinks ()
 

Static Public Member Functions

static boost::shared_ptr< Modulecreate (FieldSharedPtr f)
 Creates an instance of this class. More...
 

Static Public Attributes

static ModuleKey className
 

Additional Inherited Members

- Protected Member Functions inherited from Nektar::Utilities::Module
 Module ()
 
void ReorderPrisms (PerMap &perFaces)
 Reorder node IDs so that prisms and tetrahedra are aligned correctly. More...
 
void PrismLines (int prism, PerMap &perFaces, set< int > &prismsDone, vector< ElementSharedPtr > &line)
 
- Protected Attributes inherited from Nektar::Utilities::Module
FieldSharedPtr m_f
 Field object. More...
 
map< string, ConfigOptionm_config
 List of configuration values. More...
 
bool m_requireEquiSpaced
 
MeshSharedPtr m_mesh
 Mesh object. More...
 

Detailed Description

Definition at line 46 of file ProcessDeform.h.

Constructor & Destructor Documentation

Nektar::Utilities::ProcessDeform::ProcessDeform ( FieldSharedPtr  f)

Definition at line 54 of file ProcessDeform.cpp.

54  :
55  ProcessModule(f)
56  {
57  }
Nektar::Utilities::ProcessDeform::~ProcessDeform ( )
virtual

Definition at line 59 of file ProcessDeform.cpp.

60  {
61  }

Member Function Documentation

static boost::shared_ptr<Module> Nektar::Utilities::ProcessDeform::create ( FieldSharedPtr  f)
inlinestatic

Creates an instance of this class.

Definition at line 50 of file ProcessDeform.h.

References Nektar::MemoryManager< DataType >::AllocateSharedPtr().

50  {
52  }
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
void Nektar::Utilities::ProcessDeform::Process ( po::variables_map &  vm)
virtual

Write mesh to output file.

Implements Nektar::Utilities::Module.

Definition at line 63 of file ProcessDeform.cpp.

References Nektar::Utilities::Module::m_f, and Nektar::SolverUtils::UpdateGeometry().

64  {
65  if (m_f->m_verbose)
66  {
67  cout << "ProcessDeform: Deforming grid..." << endl;
68  }
69 
71 
72  for (int i = 0; i < exp.num_elements(); ++i)
73  {
74  exp[i] = m_f->m_exp[i];
75  }
76 
77  SolverUtils::UpdateGeometry(m_f->m_graph, exp, false);
78  }
void UpdateGeometry(SpatialDomains::MeshGraphSharedPtr graph, Array< OneD, MultiRegions::ExpListSharedPtr > &fields, bool modal)
Update geometry according to displacement that is in current fields.
Definition: Deform.cpp:57
FieldSharedPtr m_f
Field object.

Member Data Documentation

ModuleKey Nektar::Utilities::ProcessDeform::className
static
Initial value:
=
"Deform a mesh given an input field defining displacement")

Definition at line 53 of file ProcessDeform.h.