Peano
Loading...
Searching...
No Matches
convert::data::PatchData Class Reference

A patch is a square or cube in the domain. More...

#include <PatchData.h>

Public Member Functions

 PatchData (int dimensions, double *offset_, double *size_, int dofsPerAxis, int unknownsPerDoF, int originTree)
 
bool samePatch (const PatchData &otherPatch)
 
bool overlaps (const PatchData &otherPatch)
 
void free ()
 Free internal dynamic data types if there's still data left.
 
void copyData (const PatchData &otherData, int dofsPerAxis, int unknownsPerDoF)
 

Data Fields

const int dimensions
 
double offset [MaxDimensions]
 
double size [MaxDimensions]
 size of the patch in each dimension
 
double * data
 Mapping from variables onto the actual data.
 
int originTree
 Tree that has originally written this piece of data.
 

Detailed Description

A patch is a square or cube in the domain.

It can hold variables which have been identified before via a Variable entry.

Definition at line 25 of file PatchData.h.

Constructor & Destructor Documentation

◆ PatchData()

convert::data::PatchData::PatchData ( int  dimensions,
double *  offset_,
double *  size_,
int  dofsPerAxis,
int  unknownsPerDoF,
int  originTree 
)

Member Function Documentation

◆ copyData()

void convert::data::PatchData::copyData ( const PatchData &  otherData,
int  dofsPerAxis,
int  unknownsPerDoF 
)

◆ free()

void convert::data::PatchData::free ( )

Free internal dynamic data types if there's still data left.

◆ overlaps()

bool convert::data::PatchData::overlaps ( const PatchData &  otherPatch)

◆ samePatch()

bool convert::data::PatchData::samePatch ( const PatchData &  otherPatch)

Field Documentation

◆ data

double* convert::data::PatchData::data

Mapping from variables onto the actual data.

We store data as AoS. It is furthermore ordered lexicographically, i.e. the x index is the fastest running index.

Definition at line 54 of file PatchData.h.

Referenced by peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool::__generate_dastgen_input_file(), peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool::__get_file_name(), peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool::__get_full_qualified_file_name(), exaparty.api.particle.Particle.Particle::__init__(), exaparty.api.particle.Particle.Particle::_add_dependency_checks(), exaparty.api.particle.Particle.Particle::_dependency_checks_modify_steps(), exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_boolean_array_attributes(), exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_boolean_attributes(), exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_double_array_attributes(), exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_double_attributes(), exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_enum_attributes(), exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_integer_array_attributes(), exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_integer_attributes(), exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_peano_double_array_attributes(), exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_peano_integer_array_attributes(), exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_string_attributes(), exaparty.api.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_user_defined_attributes(), peano4.api.datamodel.PatchToDoubleArray.PatchToDoubleArray::_get_dictionary_for_output(), peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool::construct_output(), peano4.api.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector::construct_output(), peano4.api.datamodel.PatchToDoubleArray.PatchToDoubleArray::construct_output(), peano4.api.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap::construct_output(), peano4.api.datamodel.PatchToDoubleArrayWithSmartPointer.PatchToDoubleArrayWithSmartPointer::construct_output(), peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool::get_header_file_include(), peano4.api.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector::get_header_file_include(), peano4.api.datamodel.PatchToDoubleArray.PatchToDoubleArray::get_header_file_include(), peano4.api.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap::get_header_file_include(), peano4.api.datamodel.PatchToDoubleArrayWithSmartPointer.PatchToDoubleArrayWithSmartPointer::get_header_file_include(), peano4.api.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool::get_stack_container(), peano4.api.datamodel.PatchToDoubleArray.PatchToDoubleArray::get_stack_container(), peano4.api.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap::get_stack_container(), peano4.api.datamodel.PatchToDoubleArrayWithSmartPointer.PatchToDoubleArrayWithSmartPointer::get_stack_container(), peano4.api.datamodel.DaStGen2.DaStGen2::hosts_smart_pointer_attribute(), exaparty.api.particle.Particle.Particle::readme_descriptor(), exaparty.api.particle.SPHLeapfrogFixedSearchRadius.SPHLeapfrogFixedSearchRadius::set_parameters(), exaparty.api.particle.SPHParticle.SPHParticle::set_parameters(), and exaparty.api.particle.tests.testLeapfrogFixedTimeStepSize.testLeapfrogFixedTimeStepSize::set_parameters().

◆ dimensions

const int convert::data::PatchData::dimensions

Definition at line 37 of file PatchData.h.

Referenced by tarch.plotter.api.input.PatchFileParser.PatchFileParser::__parse_meta_data_region(), tarch.plotter.api.input.PatchFileParser.PatchFileParser::__parse_patch_region(), tarch.plotter.api.input.PatchFileParser.PatchFileParser::__record_doubles_per_patch(), tarch.plotter.api.input.PatchFileParser.UnknownAttributes::_initialise_default_mapping_if_no_mapping_specified(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator::convert_index_to_dim(), equations.euler.Euler::eigenvalues(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator::eval_integral(), equations.elastic.Elastic::flux(), equations.euler.Euler::flux(), mghype.api.matrixgenerators.GaussLobatto.GaussLobattoMatrixFree::get_boundary_matrix(), mghype.api.matrixgenerators.GaussLobatto.GaussLobattoMatrixFree::get_cell_from_face_matrix(), mghype.api.matrixgenerators.DLinear.DLinear::get_cell_identity_matrix(), mghype.api.matrixgenerators.DLinearMassIdentity.DLinearMassIdentity::get_cell_identity_matrix(), mghype.api.matrixgenerators.DLinear.DLinear::get_cell_mass_matrix(), mghype.api.matrixgenerators.DLinear.DLinear::get_cell_system_matrix_for_laplacian(), mghype.api.matrixgenerators.DLinearMassIdentity.DLinearMassIdentity::get_cell_system_matrix_for_laplacian(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator::get_deriv(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator::get_points_for_dimension(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator::get_polynomial(), mghype.api.matrixgenerators.GaussLobatto.GaussLobattoMatrixFree::get_projection_matrices(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator::get_weights_for_dimension(), matrices.DgGenerator::getCellToFaceMatrix(), api.solvers.DiscontinuousGalerkinDiscretisation.DiscontinuousGalerkinDiscretisation::nodes_per_cell(), api.solvers.DiscontinuousGalerkinDiscretisation.DiscontinuousGalerkinDiscretisation::nodes_per_face(), and tarch.plotter.api.input.PatchFileParser.PatchFileParser::parse_file().

◆ offset

double convert::data::PatchData::offset[MaxDimensions]

Definition at line 42 of file PatchData.h.

Referenced by tarch.plotter.api.input.Patch.Patch::__repr__().

◆ originTree

int convert::data::PatchData::originTree

Tree that has originally written this piece of data.

Or -1 if data does not result directly from any tree.

Definition at line 60 of file PatchData.h.

◆ size

double convert::data::PatchData::size[MaxDimensions]

size of the patch in each dimension

Definition at line 47 of file PatchData.h.

Referenced by tarch.plotter.api.input.Patch.Patch::__repr__().


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