Refine Base Class

class pyrefine.refine.base.RefineBase(project_name, pbs=None)
gradation

Refine input that controls the amount of smoothing applied to the metric field. The default value is -1.

Type

int or float

aspect_ratio

Refine input acts as an upper bound of element aspect ratio. The default value of -1 does not limit the aspect ratio, otherwise the value must be greater than or equal to 1.

Type

int or float

extrude_2d_mesh_to_3d

Set extrude_2d_mesh_to_3d flag to True when using a 2D mesh of triangles that needs to be extruded to a single layer of prisms.

Type

bool

use_kexact

Use K-exact least-squares reconstruction.

Type

bool

use_deforming

Use the deforming option in refine for meshes where coordinates in the simulation are different from the original mesh

Type

bool

number_of_sweeps

The number of sweeps for refine. If None, use the refine default

Type

None or int

uniform_regions: List[UniformRegionBase]

uniform refinement regions to be applied UniformRegionBase:

Type

list

translate_mesh(istep=1)

Convert the meshb file into a ugrid file

get_expected_file_list()

Tell the adaptation driver what files related to this component should be in the adaptation root directory

Returns

The list of strings with the names of files. If no root directory files are needed by this component, return None

Return type

expected_files

run(istep, complexity)

Compute the metric, generates the mesh, and interpolates the solution to the new mesh