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

#include <ProcessDeform.h>

Inheritance diagram for Nektar::FieldUtils::ProcessDeform:
Inheritance graph
[legend]
Collaboration diagram for Nektar::FieldUtils::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...
 
virtual std::string GetModuleName ()
 
- Public Member Functions inherited from Nektar::FieldUtils::ProcessModule
 ProcessModule ()
 
 ProcessModule (FieldSharedPtr p_f)
 
- Public Member Functions inherited from Nektar::FieldUtils::Module
FIELD_UTILS_EXPORT Module (FieldSharedPtr p_f)
 
FIELD_UTILS_EXPORT void RegisterConfig (string key, string value)
 Register a configuration option with a module. More...
 
FIELD_UTILS_EXPORT void PrintConfig ()
 Print out all configuration options for a module. More...
 
FIELD_UTILS_EXPORT void SetDefaults ()
 Sets default configuration options for those which have not been set. More...
 
FIELD_UTILS_EXPORT bool GetRequireEquiSpaced (void)
 
FIELD_UTILS_EXPORT void SetRequireEquiSpaced (bool pVal)
 
FIELD_UTILS_EXPORT void EvaluateTriFieldAtEquiSpacedPts (LocalRegions::ExpansionSharedPtr &exp, const Array< OneD, const NekDouble > &infield, Array< OneD, NekDouble > &outfield)
 

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::FieldUtils::Module
 Module ()
 
- Protected Attributes inherited from Nektar::FieldUtils::Module
FieldSharedPtr m_f
 Field object. More...
 
map< string, ConfigOptionm_config
 List of configuration values. More...
 
bool m_requireEquiSpaced
 

Detailed Description

Definition at line 46 of file ProcessDeform.h.

Constructor & Destructor Documentation

Nektar::FieldUtils::ProcessDeform::ProcessDeform ( FieldSharedPtr  f)

Definition at line 54 of file ProcessDeform.cpp.

Nektar::FieldUtils::ProcessDeform::~ProcessDeform ( )
virtual

Definition at line 58 of file ProcessDeform.cpp.

59 {
60 }

Member Function Documentation

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

Creates an instance of this class.

Definition at line 50 of file ProcessDeform.h.

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

51  {
53  }
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
virtual std::string Nektar::FieldUtils::ProcessDeform::GetModuleName ( )
inlinevirtual

Implements Nektar::FieldUtils::Module.

Definition at line 62 of file ProcessDeform.h.

63  {
64  return "ProcessDeform";
65  }
void Nektar::FieldUtils::ProcessDeform::Process ( po::variables_map &  vm)
virtual

Write mesh to output file.

Implements Nektar::FieldUtils::Module.

Definition at line 62 of file ProcessDeform.cpp.

References Nektar::FieldUtils::Module::m_f, and Nektar::GlobalMapping::UpdateGeometry().

63 {
64  if (m_f->m_verbose)
65  {
66  if (m_f->m_comm->TreatAsRankZero())
67  {
68  cout << "ProcessDeform: Deforming grid..." << endl;
69  }
70  }
71 
72  Array<OneD, MultiRegions::ExpListSharedPtr> exp(m_f->m_exp.size());
73 
74  for (int i = 0; i < exp.num_elements(); ++i)
75  {
76  exp[i] = m_f->m_exp[i];
77  }
78 
79  GlobalMapping::UpdateGeometry(m_f->m_graph, exp, false);
80 }
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:59
FieldSharedPtr m_f
Field object.

Member Data Documentation

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

Definition at line 54 of file ProcessDeform.h.