|
numerics
|
#include <fields.hpp>
Public Member Functions | |
| ScalarField3D (int nx, int ny, int nz, float dx, float ox=0.0f, float oy=0.0f, float oz=0.0f) | |
| Grid3D & | grid () |
| const Grid3D & | grid () const |
| int | nx () const |
| int | ny () const |
| int | nz () const |
| float | dx () const |
| float | ox () const |
| float | oy () const |
| float | oz () const |
| void | set (int i, int j, int k, double v) |
| void | fill (double v) |
| float | sample (float x, float y, float z) const |
Definition at line 21 of file fields.hpp.
| num::ScalarField3D::ScalarField3D | ( | int | nx, |
| int | ny, | ||
| int | nz, | ||
| float | dx, | ||
| float | ox = 0.0f, |
||
| float | oy = 0.0f, |
||
| float | oz = 0.0f |
||
| ) |
| nx,ny,nz | Grid resolution |
| dx | Cell size [m] |
| ox,oy,oz | World-space origin |
Definition at line 14 of file fields.cpp.
|
inline |
Definition at line 35 of file fields.hpp.
References num::Grid3D::dx().
Referenced by sample(), and num::MagneticSolver::solve_magnetic_field().
Definition at line 41 of file fields.hpp.
References num::Grid3D::fill().
|
inline |
Definition at line 29 of file fields.hpp.
Referenced by num::MagneticSolver::current_density(), physics::ElectricSolver::joule_heating(), main(), num::VectorField3D::scale(), num::FieldSolver::solve_poisson(), and physics::ElectricSolver::solve_potential().
Definition at line 30 of file fields.hpp.
|
inline |
Definition at line 32 of file fields.hpp.
References num::Grid3D::nx().
Referenced by sample(), and num::MagneticSolver::solve_magnetic_field().
|
inline |
Definition at line 33 of file fields.hpp.
References num::Grid3D::ny().
Referenced by sample(), and num::MagneticSolver::solve_magnetic_field().
|
inline |
Definition at line 34 of file fields.hpp.
References num::Grid3D::nz().
Referenced by sample(), and num::MagneticSolver::solve_magnetic_field().
|
inline |
Definition at line 36 of file fields.hpp.
Referenced by num::MagneticSolver::solve_magnetic_field().
|
inline |
Definition at line 37 of file fields.hpp.
Referenced by num::MagneticSolver::solve_magnetic_field().
|
inline |
Definition at line 38 of file fields.hpp.
Referenced by num::MagneticSolver::solve_magnetic_field().
Trilinear interpolation at world position (x,y,z). Returns 0 outside the grid domain.
Definition at line 19 of file fields.cpp.
References dx(), num::ipow(), nx(), ny(), and nz().
Referenced by num::VectorField3D::sample().
Definition at line 40 of file fields.hpp.
References num::ipow(), and num::Grid3D::set().