Finite Volume Solver  prototype
A framework to build finite volume solvers for the AG Klein at the Freie Universität Berlin.
Public Member Functions | Protected Attributes | Private Types | Private Attributes | List of all members
fub::amrex::MultiWriteHdf52 Class Referenceabstract

#include <MultiWriteHdf5.hpp>

Public Member Functions

 MultiWriteHdf52 (const fub::ProgramOptions &vm)
 
void operator() (const MultiBlockGriddingAlgorithm2 &grid) override
 
Duration NextOutputTime (Duration time_point) override
 Returns the time point at which the simulation shall stop to do some output. More...
 
bool ShallOutputNow (const MultiBlockGriddingAlgorithm2 &grid) override
 Returns true if this output class shall be invoked at the specified time point. More...
 
virtual bool ShallOutputNow (const GriddingAlgorithm &grid)=0
 Returns true if this output class shall be invoked at the specified time point. More...
 
void Print (Log &log)
 
virtual void operator() (const GriddingAlgorithm &grid)=0
 Invoke the actual output logic. More...
 

Protected Attributes

std::vector< std::ptrdiff_t > frequencies_
 
std::vector< fub::Durationintervals_
 
Duration smallest_time_step_size_
 

Private Types

enum class  Type { plenum , tube }
 

Private Attributes

Type type_
 
int grid_id_
 
std::string path_to_file_
 
std::optional<::amrex::Box > output_box_
 

Member Enumeration Documentation

◆ Type

Enumerator
plenum 
tube 

Constructor & Destructor Documentation

◆ MultiWriteHdf52()

fub::amrex::MultiWriteHdf52::MultiWriteHdf52 ( const fub::ProgramOptions vm)

Member Function Documentation

◆ NextOutputTime()

Duration fub::OutputAtFrequencyOrInterval< MultiBlockGriddingAlgorithm2 >::NextOutputTime ( Duration  time_point)
inlineoverridevirtualinherited

Returns the time point at which the simulation shall stop to do some output.

Implements fub::BasicOutput< GriddingAlgorithm >.

◆ operator()() [1/2]

template<typename GriddingAlgorithm >
virtual void fub::BasicOutput< GriddingAlgorithm >::operator() ( const GriddingAlgorithm &  grid)
pure virtualinherited

◆ operator()() [2/2]

void fub::amrex::MultiWriteHdf52::operator() ( const MultiBlockGriddingAlgorithm2 grid)
override

◆ Print()

void fub::OutputAtFrequencyOrInterval< MultiBlockGriddingAlgorithm2 >::Print ( Log &  log)
inlineinherited

◆ ShallOutputNow() [1/2]

template<typename GriddingAlgorithm >
virtual bool fub::BasicOutput< GriddingAlgorithm >::ShallOutputNow ( const GriddingAlgorithm &  grid)
pure virtualinherited

Returns true if this output class shall be invoked at the specified time point.

Implemented in fub::OutputAtFrequencyOrInterval< GriddingAlgorithm >, fub::OutputAtFrequencyOrInterval< Grid >, and fub::MultipleOutputs< Grid >.

◆ ShallOutputNow() [2/2]

bool fub::OutputAtFrequencyOrInterval< MultiBlockGriddingAlgorithm2 >::ShallOutputNow ( const GriddingAlgorithm &  grid)
inlineoverrideinherited

Returns true if this output class shall be invoked at the specified time point.

Member Data Documentation

◆ frequencies_

std::vector<std::ptrdiff_t> fub::OutputAtFrequencyOrInterval< MultiBlockGriddingAlgorithm2 >::frequencies_
protectedinherited

◆ grid_id_

int fub::amrex::MultiWriteHdf52::grid_id_
private

◆ intervals_

std::vector<fub::Duration> fub::OutputAtFrequencyOrInterval< MultiBlockGriddingAlgorithm2 >::intervals_
protectedinherited

◆ output_box_

std::optional<::amrex::Box> fub::amrex::MultiWriteHdf52::output_box_
private

◆ path_to_file_

std::string fub::amrex::MultiWriteHdf52::path_to_file_
private

◆ smallest_time_step_size_

Duration fub::OutputAtFrequencyOrInterval< MultiBlockGriddingAlgorithm2 >::smallest_time_step_size_
protectedinherited

◆ type_

Type fub::amrex::MultiWriteHdf52::type_
private

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