Finite element solver library for Range FEA. Provides physics solvers, linear system solvers, and supporting utilities used by the fea-solver CLI and the GUI application.
Each physics solver derives from RSolverGeneric and operates on an RModel from range-model-lib.
| Class | Physics |
|---|---|
RSolverHeat |
Steady-state and transient heat conduction |
RSolverRadiativeHeat |
Radiative heat transfer (hemicube method) |
RSolverFluid |
Incompressible fluid flow (Navier-Stokes) |
RSolverFluidHeat |
Coupled fluid flow and heat transfer |
RSolverFluidParticle |
Particle transport in fluid |
RSolverStress |
Linear structural stress analysis |
RSolverAcoustic |
Acoustic wave propagation, transient and harmonic |
RSolverElectrostatics |
Electrostatic field analysis |
RSolverMagnetostatics |
Magnetostatic field analysis |
RSolverPotential |
Steady Darcy flow through porous media |
RSolverWave |
General wave equation |
RSolverMesh |
Mesh deformation / moving mesh |
The top-level RSolver class owns the solver map and orchestrates multi-physics execution.
RSolverHeat, RSolverStress (static, transient and modal) and RSolverPotential compute with second order elements (R_ELEMENT_TETRA2, R_ELEMENT_TRI2, R_ELEMENT_TRUSS2) using their own shape functions, so they represent quadratic fields exactly. RSolverMesh generates the new mesh with elements of the order the model has.
The other solvers do not support second order elements (RSolverGeneric::supportsSecondOrder() returns false). For them the elements are replaced by first order ones made of their corner nodes while the solver runs: nodes in the middle of edges are left out of the solution, and once it is computed, values of the solver's node variables there are interpolated from both ends of their edge. The model keeps its second order elements, also in written result files, and results of other solvers at those nodes are not changed.
RMatrixSolver wraps iterative solvers for sparse systems assembled by the physics solvers:
- Conjugate Gradient (CG)
- Generalized Minimal Residual (GMRES)
RMatrixPreconditioner provides preconditioning, and RMatrixManager handles sparse matrix storage.
REigenValueSolver provides eigenvalue/eigenvector computation for modal analysis.
RConvection— convective boundary condition assemblyRLocalRotation— local coordinate frame rotations for anisotropic material propertiesRScales— physical unit scaling factorsRIterationInfo/RIterationInfoValue— convergence tracking per iterationRHemiCube/RHemiCubePixel/RHemiCubeSector— hemicube geometry for view-factor computation in radiative heat transferRSolverSharedData— data shared between coupled solvers across time steps
range-base-lib— math primitives, logging, job managementrange-model-lib— FEA model: elements, nodes, materials, boundary conditions