DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
test_fv_correctness Namespace Reference

Classes

class  TestArrayBytes
 
class  TestCellBarycenters
 
class  TestCellVolumes
 
class  TestDOFArrays
 
class  TestFaceAreas
 
class  TestGlobalVolume
 
class  TestJacobiDet
 
class  TestSmoothScale
 

Functions

 mpi ()
 
str _data_mesh_path (str name)
 
CFV.FiniteVolume _build_fv (mpi, mesh)
 
 wall_mesh_fv (mpi)
 
 periodic_mesh_fv (mpi)
 

Detailed Description

Correctness tests for CFV.FiniteVolume through the Python bindings.

Tests the FiniteVolume construction pipeline and verifies geometric
quantities (volumes, areas, barycenters, normals) against known values
for the Uniform_3x3_wall mesh (a 3x3 quad grid on [-1,2]^2).

These tests use pytest assertions and are intended for automated CI.

Function Documentation

◆ _build_fv()

CFV.FiniteVolume test_fv_correctness._build_fv (   mpi,
  mesh 
)
protected
Construct a FiniteVolume with default settings on a given mesh.

Definition at line 36 of file test_fv_correctness.py.

Here is the caller graph for this function:

◆ _data_mesh_path()

str test_fv_correctness._data_mesh_path ( str  name)
protected
Return absolute path to a mesh file under data/mesh/.

Definition at line 29 of file test_fv_correctness.py.

Here is the caller graph for this function:

◆ mpi()

test_fv_correctness.mpi ( )

Definition at line 23 of file test_fv_correctness.py.

◆ periodic_mesh_fv()

test_fv_correctness.periodic_mesh_fv (   mpi)
Build FiniteVolume on Uniform_3x3 with periodic BCs (9 quads, [0,3]^2).

Definition at line 75 of file test_fv_correctness.py.

Here is the call graph for this function:

◆ wall_mesh_fv()

test_fv_correctness.wall_mesh_fv (   mpi)
Build FiniteVolume on the Uniform_3x3_wall mesh (9 quads, [-1,2]^2).

Definition at line 66 of file test_fv_correctness.py.

Here is the call graph for this function: