Skip to content
Snippets Groups Projects
Commit 0bbef6f8 authored by many's avatar many
Browse files

feractoring with a focus on top level structure

parent 5a88f4c2
No related branches found
No related tags found
Loading
Checking pipeline status
import numpy as np
import pyvista as pv
def test_loadmesh_vtk(tmpdir):
"""
tests if a vtk mesh can be read and Density is translated to rho
"""
from ntrfc.filehandling.mesh import load_mesh
test_file = tmpdir / "tmp.vtk"
mesh = pv.Box()
mesh["Density"] = np.ones(mesh.number_of_cells)
mesh.save(test_file)
mesh_load = load_mesh(test_file)
assert "Density" in mesh_load.array_names
def test_cgnsReader():
from ntrfc.filehandling.mesh import cgnsReader
# todo fill
a = cgnsReader
return 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment