Muscat.MeshTools.RemeshBackEnds.FefloRemeshing module¶
- class FefloRemeshing(mesh: Mesh, solution=None, levelset=None, metric=None)[source]¶
Bases:
object- Prepro(hmin: float64 = 0.0001, geotol: float64 = 0.0001, rmax: float64 = 1)[source]¶
Method to preprocess mesh before adaption and get a background surface mesh well oriented using INRIA Gamma3 tool feflo
- Parameters:
hmin (MuscatFloat) – Minimum mesh size allowed
geotol (MuscatFloat) – Geometric tolerance to compute surface mesh
rmax (MuscatFloat) – Maximum anisotropic ratio allowed
- Returns:
backupMeshName – name of the file (without extension) of feflo resulting surface mesh to ensure geometry accuracy during adaptation
- Return type:
str
- Runner(remesher_options: dict, backEndOptions: dict)[source]¶
Run the process to write mesh in an inria mesh file, launch feflo and read the resulting mesh
Notes
The inria mesh file (called temp_name) will be written in a temporary directory
- Parameters:
remesher_options (dict) – keys corresponding to feflo option name and value corresponding to value if applicable
backEndOptions (dict) –
Extra options for the “by file” feflo communication. Supported keys include:
"temp_name": name of the output mesh file without extension. Defaults to"temp_file"."binary": whether to write binary files. Defaults toTrue."prefix": prefix used when restoring tags. Defaults to"feflo"."keep_temp_files": whether to keep temporary files. Defaults toFalse."temp_dir": directory used for temporary files. IfNone, a temporary directory is used.
- Returns:
mesh – feflo resulting mesh from adaption
- Return type: