Peano
Loading...
Searching...
No Matches
peano4.api.datamodel.Patch.Patch Class Reference

Patch implementation of a degree of freedom. More...

Inheritance diagram for peano4.api.datamodel.Patch.Patch:
Collaboration diagram for peano4.api.datamodel.Patch.Patch:

Public Member Functions

 __init__ (self, dim, no_of_unknowns, name, float_type="double")
 dim should be a two-tuple or a three-tuple of integers, so a construction could look like
 __str__ (self)
 additional_load_and_store_arguments (self)
 additional_load_and_store_arguments (self, new_arguments)
Public Member Functions inherited from peano4.api.datamodel.DoF.DoF
 __init__ (self, name)
 Create a degree of freedom object.
 configure (self, namespace, association, subdirectory="", temporary_subdirectory="")
 Typically called by model as soon as you add an object to it.
 get_full_qualified_type (self)
 get_logical_type_name (self)
 What should the data type be called within the data repository, or within action sets.
 get_enumeration_type (self)
 What should the data type be called within the data repository.
 additional_load_and_store_arguments_for_other_dof (self, argument_name, use_dof_association=None)
 You can make Peano's store and load arguments of any DoF depend on other DoFs that you have loaded before.
 subnamespace (self)

Data Fields

 dim = dim
 no_of_unknowns = no_of_unknowns
 generator = PatchToDoubleArray(self, float_type)
str readme_descriptor
Data Fields inherited from peano4.api.datamodel.DoF.DoF
 association = DoFAssociation.Undef
 name = name
list namespace = []
 grid_selector = None
 subdirectory = subdirectory
 temporary_subdirectory = temporary_subdirectory

Static Public Attributes

str readme_package_descriptor

Additional Inherited Members

Protected Attributes inherited from peano4.api.datamodel.DoF.DoF
list _additional_load_and_store_arguments = []

Detailed Description

Patch implementation of a degree of freedom.

Please study the superclass for details.

Definition at line 7 of file Patch.py.

Constructor & Destructor Documentation

◆ __init__()

peano4.api.datamodel.Patch.Patch.__init__ ( self,
dim,
no_of_unknowns,
name,
float_type = "double" )

dim should be a two-tuple or a three-tuple of integers, so a construction could look like

cell_data = peano4.api.datamodel.Patch( (6,6,6), "Fluid" )

Definition at line 23 of file Patch.py.

References __init__().

Referenced by __init__().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ __str__()

◆ additional_load_and_store_arguments() [1/2]

peano4.api.datamodel.Patch.Patch.additional_load_and_store_arguments ( self)

◆ additional_load_and_store_arguments() [2/2]

Field Documentation

◆ dim

peano4.api.datamodel.Patch.Patch.dim = dim

Definition at line 32 of file Patch.py.

Referenced by __str__().

◆ generator

◆ no_of_unknowns

peano4.api.datamodel.Patch.Patch.no_of_unknowns = no_of_unknowns

◆ readme_descriptor

str peano4.api.datamodel.Patch.Patch.readme_descriptor
Initial value:
= """
### Datamodel for """ + name + str(self)

Definition at line 35 of file Patch.py.

◆ readme_package_descriptor

str peano4.api.datamodel.Patch.Patch.readme_package_descriptor
static
Initial value:
= """
"""

Definition at line 19 of file Patch.py.


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