module myna.application.additivefoam.solidification_region_reduced_stl.app
Defines application behavior for the additivefoam/solidification_region_reduced_stl simulation type. Derives most functionality from the app for additivefoam/solidification_region_reduced
class AdditiveFOAMRegionReducedSTL
Simulation type for generating solidification data for specified regions
method AdditiveFOAMRegionReducedSTL.__init__
__init__(name='solidification_region_reduced_stl')
method AdditiveFOAMRegionReducedSTL.can_use_existing_stl_mesh_resource
can_use_existing_stl_mesh_resource(case_dict)
Checks if the resource template has STL mesh with matching metadata
Args:
case_dict: (dict) describes the case settings, fromself.parse_mynafile_path_to_dict()
method AdditiveFOAMRegionReducedSTL.configure
configure()
Configure all cases for the application
method AdditiveFOAMRegionReducedSTL.construct_part_stl_dict
construct_part_stl_dict(case_dict)
Constructs a dictionary with the metadata to describe a unique STL-based coarse mesh in the resource template directory.
Args:
case_dict: (dict) describes the case settings, fromself.parse_mynafile_path_to_dict()
method AdditiveFOAMRegionReducedSTL.create_coarse_mesh
create_coarse_mesh(case_dict)
Creates the coarse mesh, snapping to the provided STL geometry. If the same STL-based mesh has already been generated, then this step is skipped.
Args:
case_dict: (dict) describes the case settings, fromself.parse_mynafile_path_to_dict()
method AdditiveFOAMRegionReducedSTL.generate_resource_mesh
generate_resource_mesh(case_dict)
Generates the mesh in the resource template directory based on the given case and mesh setting dictionaries.
The STL-based coarse mesh can be reused, but due to the changing layer geometry, the region-based refinement should be redone for each layer to avoid assuming that each layer has the same cross-section.
Args:
case_dict: (dict) describes the case settings, fromself.parse_mynafile_path_to_dict()
This file was automatically generated via lazydocs.