|
numerics
|
#include <grid3d.hpp>
Public Member Functions | |
| Grid3D (int nx, int ny, int nz, double dx=1.0) | |
| int | nx () const |
| int | ny () const |
| int | nz () const |
| double | dx () const |
| int | size () const |
| real & | operator() (int i, int j, int k) |
| real | operator() (int i, int j, int k) const |
| void | set (int i, int j, int k, real v) |
| void | fill (real v) |
| Vector | to_vector () const |
| Copy contents into a new Vector (for solver interop). | |
| void | from_vector (const Vector &v) |
| Copy solver result back into grid. | |
Definition at line 14 of file grid3d.hpp.
| nx,ny,nz | Number of cells in each dimension |
| dx | Uniform cell size [m] |
Definition at line 6 of file grid3d.cpp.
|
inline |
Definition at line 23 of file grid3d.hpp.
Referenced by num::curl_3d(), num::ScalarField3D::dx(), physics::ElectricSolver::joule_heating(), and physics::ElectricSolver::solve_potential().
Definition at line 9 of file grid3d.cpp.
Referenced by num::ScalarField3D::fill().
Copy solver result back into grid.
Definition at line 19 of file grid3d.cpp.
References num::ipow(), and size().
|
inline |
Definition at line 20 of file grid3d.hpp.
Referenced by num::curl_3d(), num::MagneticSolver::current_density(), num::divergence_3d(), physics::ElectricSolver::joule_heating(), num::ScalarField3D::nx(), num::FieldSolver::solve_poisson(), and physics::ElectricSolver::solve_potential().
|
inline |
Definition at line 21 of file grid3d.hpp.
Referenced by num::curl_3d(), physics::ElectricSolver::joule_heating(), num::ScalarField3D::ny(), and physics::ElectricSolver::solve_potential().
|
inline |
Definition at line 22 of file grid3d.hpp.
Referenced by num::curl_3d(), physics::ElectricSolver::joule_heating(), num::ScalarField3D::nz(), and physics::ElectricSolver::solve_potential().
Definition at line 26 of file grid3d.hpp.
References num::ipow().
Definition at line 27 of file grid3d.hpp.
References num::ipow().
Definition at line 29 of file grid3d.hpp.
References num::ipow().
Referenced by physics::ElectricSolver::joule_heating(), main(), and num::ScalarField3D::set().
|
inline |
Definition at line 24 of file grid3d.hpp.
Referenced by from_vector(), and to_vector().
| Vector num::Grid3D::to_vector | ( | ) | const |
Copy contents into a new Vector (for solver interop).
Definition at line 13 of file grid3d.cpp.
References num::ipow(), and size().