Alsvinn  0.5.3
The fast FVM simulator with UQ support
Public Member Functions | List of all members
alsfvm::io::PythonScript Class Reference

#include <alsfvm/io/PythonScript.hpp>

Inheritance diagram for alsfvm::io::PythonScript:
alsfvm::io::Writer

Public Member Functions

 PythonScript (const std::string &basename, const Parameters &parameters, alsutils::mpi::ConfigurationPtr mpiConfigration=nullptr)
 
virtual void write (const volume::Volume &conservedVariables, const grid::Grid &grid, const simulator::TimestepInformation &timestepInformation)
 write writes the data to disk More...
 
virtual void finalize (const grid::Grid &grid, const simulator::TimestepInformation &timestepInformation) override
 This method should be called at the end of the simulation. More...
 
- Public Member Functions inherited from alsfvm::io::Writer
virtual ~Writer ()
 
void addAttributes (const std::string &nameOfAttributes, const boost::property_tree::ptree &attributes)
 

Additional Inherited Members

- Static Public Member Functions inherited from alsfvm::io::Writer
static std::string getClassName ()
 
- Protected Attributes inherited from alsfvm::io::Writer
std::map< std::string, boost::property_tree::ptree > attributesMap
 

Detailed Description

Allows you to run a python script on the provided data

Parameters expected:

Constructor & Destructor Documentation

◆ PythonScript()

alsfvm::io::PythonScript::PythonScript ( const std::string &  basename,
const Parameters parameters,
alsutils::mpi::ConfigurationPtr  mpiConfigration = nullptr 
)

Member Function Documentation

◆ finalize()

void alsfvm::io::PythonScript::finalize ( const grid::Grid grid,
const simulator::TimestepInformation timestepInformation 
)
overridevirtual

This method should be called at the end of the simulation.

Reimplemented from alsfvm::io::Writer.

◆ write()

void alsfvm::io::PythonScript::write ( const volume::Volume conservedVariables,
const grid::Grid grid,
const simulator::TimestepInformation timestepInformation 
)
virtual

write writes the data to disk

Parameters
conservedVariablesthe conservedVariables to write
gridthe grid that is used (describes the whole domain)
timestepInformation

Implements alsfvm::io::Writer.


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