install_tetra_meshes#
- cherab.lhd.emc3.grid.install_tetra_meshes(zones: list[str] = ['zone0', 'zone1', 'zone2', 'zone3', 'zone4', 'zone11', 'zone12', 'zone13', 'zone14', 'zone15'], tetra_mesh_path: Path | str = PosixPath('/home/docs/.cache/cherab/lhd/emc3/tetra'), dataset: str = 'grid-360', update: bool = True)Source#
Create
TetraMeshData.rsm files and install them into a repository.Default repository is set to
/cherab/lhd/emc3/tetra., which is located in the user’s cache directory. The directory is created if it does not exist. The file name is determined by each zone name likezone0.rsm.Note
It takes a lot of time to calculate all
TetraMeshDatainstance because each zone has numerous number of grids.- Parameters:
- zones
list[str],optional List of zone names, by default
["zone0",..., "zone4", "zone11",..., "zone15"].- tetra_mesh_path
Path|str,optional Path to the directory to save
TetraMeshData.rsm files, by defaultPATH_TO_STORAGE / "emc3/tetra/".- dataset
str,optional Name of grid dataset, by default “grid-360”.
- updatebool,
optional Whether or not to update existing
TetraMeshData.rsm file, by default True.
- zones