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::ProcessConcatenateFld Class Reference

This processing module sets up for the boundary field to be extracted. More...

#include <ProcessConcatenateFld.h>

Inheritance diagram for Nektar::Utilities::ProcessConcatenateFld:
Inheritance graph
Collaboration diagram for Nektar::Utilities::ProcessConcatenateFld:
Collaboration graph

Public Member Functions

 ProcessConcatenateFld (FieldSharedPtr f)
virtual ~ProcessConcatenateFld ()
virtual void Process (po::variables_map &vm)
- Public Member Functions inherited from Nektar::Utilities::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.
void PrintConfig ()
 Print out all configuration options for a module.
void SetDefaults ()
 Sets default configuration options for those which have not been set.
bool GetRequireEquiSpaced (void)
void SetRequireEquiSpaced (bool pVal)
 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.

Static Public Member Functions

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

Static Public Attributes

static ModuleKey className

Additional Inherited Members

- Protected Member Functions inherited from Nektar::Utilities::Module
virtual void ProcessEdges (bool ReprocessEdges=true)
 Extract element edges.
virtual void ProcessFaces (bool ReprocessFaces=true)
 Extract element faces.
virtual void ProcessElements ()
 Generate element IDs.
virtual void ProcessComposites ()
 Generate composites.
void ReorderPrisms (PerMap &perFaces)
 Reorder node IDs so that prisms and tetrahedra are aligned correctly.
void PrismLines (int prism, PerMap &perFaces, set< int > &prismsDone, vector< ElementSharedPtr > &line)
- Protected Attributes inherited from Nektar::Utilities::Module
FieldSharedPtr m_f
 Field object.
map< string, ConfigOptionm_config
 List of configuration values.
bool m_requireEquiSpaced
MeshSharedPtr m_mesh
 Mesh object.

Detailed Description

This processing module sets up for the boundary field to be extracted.

Definition at line 48 of file ProcessConcatenateFld.h.

Constructor & Destructor Documentation

Nektar::Utilities::ProcessConcatenateFld::ProcessConcatenateFld ( FieldSharedPtr  f)

Definition at line 56 of file ProcessConcatenateFld.cpp.

// check for correct input files
if((f->m_inputfiles.count("xml") == 0) &&
(f->m_inputfiles.count("xml.gz") == 0))
cout << "An xml or xml.gz input file must be specified for the "
"concatenate module" << endl;
if((f->m_inputfiles.count("fld") == 0) &&
(f->m_inputfiles.count("chk") == 0) &&
(f->m_inputfiles.count("rst") == 0))
cout << "A fld or chk or rst input file must be specified for the "
"concatenate module" << endl;
Nektar::Utilities::ProcessConcatenateFld::~ProcessConcatenateFld ( )

Definition at line 80 of file ProcessConcatenateFld.cpp.


Member Function Documentation

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

Creates an instance of this class.

Definition at line 52 of file ProcessConcatenateFld.h.

void Nektar::Utilities::ProcessConcatenateFld::Process ( po::variables_map &  vm)

Implements Nektar::Utilities::Module.

Definition at line 84 of file ProcessConcatenateFld.cpp.

References Nektar::Utilities::Module::m_f.

if (m_f->m_verbose)
cout << "ProcessConcatenateFld: Concatenating field file" << endl;
std::vector<LibUtilities::FieldDefinitionsSharedPtr> FieldDef
= m_f->m_exp[0]->GetFieldDefinitions();
std::vector<std::vector<NekDouble> > FieldData(FieldDef.size());
// Copy Data into FieldData and set variable
for(int j = 0; j < m_f->m_exp.size(); ++j)
for(int i = 0; i < FieldDef.size(); ++i)
// Could do a search here to find correct variable
m_f->m_exp[0]->AppendFieldData(FieldDef[i], FieldData[i],
m_f->m_fielddef = FieldDef;
m_f->m_data = FieldData;

Member Data Documentation

ModuleKey Nektar::Utilities::ProcessConcatenateFld::className
Initial value:
ModuleKey(eProcessModule, "concatenate"),
"Concatenate field file into single file")

Definition at line 55 of file ProcessConcatenateFld.h.