5#ifndef OPENFPM_PDATA_EQNSSTRUCT_HPP
6#define OPENFPM_PDATA_EQNSSTRUCT_HPP
8#include "Solvers/umfpack_solver.hpp"
9#include "Solvers/petsc_solver.hpp"
15 static const unsigned int dims=2;
17 static const unsigned int nvar=1;
41 static const unsigned int dims = 2;
43 static const unsigned int nvar = 2;
66 static const unsigned int dims = 2;
68 static const unsigned int nvar = 1;
91 static const unsigned int dims = 2;
93 static const unsigned int nvar = 2;
116 static const unsigned int dims = 2;
118 static const unsigned int nvar = 3;
142 static const unsigned int dims = 2;
144 static const unsigned int nvar = 3;
167 static const unsigned int dims = 2;
169 static const unsigned int nvar = 4;
193 static const unsigned int dims = 3;
195 static const unsigned int nvar = 3;
218 static const unsigned int dims = 3;
220 static const unsigned int nvar = 1;
246 static const unsigned int dims=2;
248 static const unsigned int nvar=1;
271 static const unsigned int dims = 2;
273 static const unsigned int nvar = 2;
296 static const unsigned int dims = 2;
298 static const unsigned int nvar = 3;
321 static const unsigned int dims = 2;
323 static const unsigned int nvar = 4;
348 static const unsigned int dims = 2;
350 static const unsigned int nvar = 1;
374 static const unsigned int dims = 2;
376 static const unsigned int nvar = 2;
401 static const unsigned int dims = 2;
403 static const unsigned int nvar = 3;
427 static const unsigned int dims = 3;
429 static const unsigned int nvar = 3;
453 static const unsigned int dims = 3;
455 static const unsigned int nvar = 1;
481 static const unsigned int dims=2;
483 static const unsigned int nvar=1;
Sparse Matrix implementation.
Sparse Matrix implementation stub object when OpenFPM is compiled with no linear algebra support.
This is a distributed grid.
This class is able to do Matrix inversion in parallel with PETSC solvers.
In case T does not match the PETSC precision compilation create a stub structure.
Implementation of the staggered grid.
stub when library compiled without eigen
stub when library compiled without eigen
Specify the general characteristic of system to solve.
Vector< double > Vector_type
type of Vector for the linear solver
static constexpr bool boundary[]
boundary at X and Y
static const unsigned int nvar
number of fields in the system
SparseMatrix< double, int, EIGEN_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
double stype
type of space float, double, ...
Specify the general characteristic of system to solve.
static const bool boundary[]
boundary at X and Y
staggered_grid_dist< dims, double, aggregate< double, double, double > > b_part
type of base particles
double stype
type of space float, double, ...
Vector< double, PETSC_BASE > Vector_type
type of Vector for the linear solver
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
SparseMatrix< double, int, PETSC_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
static const unsigned int nvar
number of fields in the system
Specify the general characteristic of system to solve.
double stype
type of space float, double, ...
static constexpr bool boundary[]
boundary at X and Y
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
grid_dist_id< dims, double, aggregate< double, double, double > > b_part
type of base particles
SparseMatrix< double, int, PETSC_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
Vector< double, PETSC_BASE > Vector_type
type of Vector for the linear solver
static const unsigned int nvar
number of fields in the system
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
Vector< double > Vector_type
type of Vector for the linear solver
static constexpr bool boundary[]
boundary at X and Y
double stype
type of space float, double, ...
SparseMatrix< double, int, EIGEN_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
static const unsigned int nvar
number of fields in the system
SparseMatrix< double, int, PETSC_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
Vector< double, PETSC_BASE > Vector_type
type of Vector for the linear solver
static constexpr bool boundary[]
boundary at X and Y
static const unsigned int nvar
number of fields in the system
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
double stype
type of space float, double, ...
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
Vector< double > Vector_type
type of Vector for the linear solver
SparseMatrix< double, int, EIGEN_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
static constexpr bool boundary[]
boundary at X and Y
double stype
type of space float, double, ...
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
static const unsigned int nvar
number of fields in the system
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
Vector< double, PETSC_BASE > Vector_type
type of Vector for the linear solver
static const unsigned int nvar
number of fields in the system
static constexpr bool boundary[]
boundary at X and Y
double stype
type of space float, double, ...
SparseMatrix< double, int, PETSC_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
static const unsigned int nvar
number of fields in the system
static constexpr bool boundary[]
boundary at X and Y
Vector< double > Vector_type
type of Vector for the linear solver
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
double stype
type of space float, double, ...
SparseMatrix< double, int, EIGEN_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
static constexpr bool boundary[]
boundary at X and Y
double stype
type of space float, double, ...
Vector< double, PETSC_BASE > Vector_type
type of Vector for the linear solver
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
static const unsigned int nvar
number of fields in the system
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
SparseMatrix< double, int, PETSC_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
static const unsigned int nvar
number of fields in the system
Vector< double > Vector_type
type of Vector for the linear solver
static constexpr bool boundary[]
boundary at X and Y
double stype
type of space float, double, ...
SparseMatrix< double, int, EIGEN_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
static const unsigned int nvar
number of fields in the system
static constexpr bool boundary[]
boundary at X and Y
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
double stype
type of space float, double, ...
SparseMatrix< double, int, PETSC_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
Vector< double, PETSC_BASE > Vector_type
type of Vector for the linear solver
static constexpr bool boundary[]
boundary at X and Y
double stype
type of space float, double, ...
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
Vector< double > Vector_type
type of Vector for the linear solver
static const unsigned int nvar
number of fields in the system
SparseMatrix< double, int, EIGEN_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
Vector< double, PETSC_BASE > Vector_type
type of Vector for the linear solver
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
double stype
type of space float, double, ...
static constexpr bool boundary[]
boundary at X and Y
static const unsigned int nvar
number of fields in the system
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
SparseMatrix< double, int, PETSC_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
double stype
type of space float, double, ...
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
static constexpr bool boundary[]
boundary at X and Y
static const unsigned int nvar
number of fields in the system
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
Vector< double > Vector_type
type of Vector for the linear solver
SparseMatrix< double, int, EIGEN_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
static constexpr bool boundary[]
boundary at X and Y
SparseMatrix< double, int, PETSC_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
Vector< double, PETSC_BASE > Vector_type
type of Vector for the linear solver
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
double stype
type of space float, double, ...
static const unsigned int nvar
number of fields in the system
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
static constexpr bool boundary[]
boundary at X and Y
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
SparseMatrix< double, int, EIGEN_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
static const unsigned int nvar
number of fields in the system
double stype
type of space float, double, ...
Vector< double > Vector_type
type of Vector for the linear solver
SparseMatrix< double, int, PETSC_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
double stype
type of space float, double, ...
static constexpr bool boundary[]
boundary at X and Y
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
static const unsigned int nvar
number of fields in the system
Vector< double, PETSC_BASE > Vector_type
type of Vector for the linear solver
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
static const unsigned int nvar
number of fields in the system
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles
double stype
type of space float, double, ..
static constexpr bool boundary[]
boundary at X and Y
SparseMatrix< double, int, EIGEN_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
Vector< double > Vector_type
type of Vector for the linear solver
SparseMatrix< double, int, PETSC_BASE > SparseMatrix_type
type of SparseMatrix for the linear solver
static const unsigned int nvar
number of fields in the system
double stype
type of space float, double, ..
static constexpr bool boundary[]
boundary at X and Y
static const unsigned int dims
dimensionaly of the equation ( 3D problem ...)
Vector< double, PETSC_BASE > Vector_type
type of Vector for the linear solver
grid_dist_id< dims, double, aggregate< double > > b_part
type of base particles