range-model-lib is the core data-model layer of the Range FEA suite. It defines every entity that describes a finite-element problem — geometry, mesh, physics setup, solver configuration, and results — and provides the serialisation, mesh-generation, and post-processing routines that operate on them.
Geometry and mesh
RNode,RElement— nodes and elements with shape-function evaluation, Jacobian computation, and isoparametric coordinate mappingRPoint,RLine,RSurface,RVolume— entity groups that own sets of elements and carry boundary/initial conditions and material assignmentsRTriangle,RTetrahedron,RSegment— geometric primitives used by the mesh generator and ray-tracing subsystemsRMeshGenerator,RMeshInput,RMeshSetup— interface to tetrahedral mesh generators: TetGen (RTetGen) and the Range mesh generator fromrange-element-lib(RModelTetraMesh), selected byRMeshInput::setGeneratorType()RMeshResultsInterpolator— interpolation of results to a newly generated meshRShapeGenerator— parametric shape creationRSurfaceReconstructor— surface retriangulation (RModel::reconstructSurfaces()): collapses tiny edges, merges coplanar triangles by constrained Delaunay retriangulation of planar regions, removes nodes inside planar regions and on straight feature lines, removes sliver triangles and optionally finishes with Delaunay edge flips and quality meshing (Delaunay refinement with node insertion on the existing surface, target minimum angle and maximum edge length); existing nodes are never moved, watertightness and orientation are preserved and no new self-intersections are created
Physics setup
RBoundaryCondition,RInitialCondition,REnvironmentCondition— typed conditions attached to entity groups, each carrying time-dependentRConditionComponentvaluesRMaterial,RMaterialProperty— material database with per-property interpolationRTimeSolver,RModalSetup,REigenValueSolverConf,RMatrixSolverConf— solver configuration objects
Results and post-processing
RVariable,RVariableData— per-node or per-element result fieldsRScalarField,RVectorField,RStreamLine,RIso,RCut— derived post-processing datasetsRMonitoringPoint,RMonitoringPointManager— time-history probes at arbitrary spatial locationsRViewFactorMatrix— radiation view-factor storage and I/O
Sparse linear algebra
RSparseVector<T>,RSparseMatrix— sorted sparse-vector and sparse-matrix types used by all solvers for global system assembly
File I/O
RModelserialises the complete problem (mesh + setup + results) to the native.rmlbinary format- Import:
.msh(Gmsh),.stl,.raw,.step/.stp(RModelStep, B-rep and tessellated geometry is triangulated) - Export:
.msh,.stl,.raw,.step(planar faceted B-rep) RFileManager,RFileHeader,RSaveFile— file versioning and format management
RModel inherits from RProblem (physics-type registry) and RResults (result-variable storage). It owns the full mesh (nodes, elements), all entity groups, all conditions, materials, solver settings, and post-processing datasets. All solvers in range-solver-lib receive a pointer to an RModel instance and read/write through its API.
| Dependency | Role |
|---|---|
range-base-lib |
Math primitives, logging, vectors, matrices |
Qt6::Core, Qt6::Gui |
QString, QVector, file I/O, GUI-facing data types |
Built as a static library via CMake as part of the top-level Range FEA build:
cmake -S src -B build-Release
cmake --build build-Release --parallel -- range-model-lib