jacobi_oo_STL
|
#include <geom.h>
Public Member Functions | |
Mesh_2d_3_square (int nx, int ny, int myid=0, int procx=1, int procy=1) | |
~Mesh_2d_3_square () override | |
void | SetU (std::vector< double > &u) const |
void | SetF (std::vector< double > &f) const |
std::vector< int > | Index_DirichletNodes () const override |
void | SaveVectorP (std::string const &name, std::vector< double > const &u) const |
Public Member Functions inherited from Mesh | |
Mesh (int ndim, int nvert_e=0, int ndof_e=0) | |
virtual | ~Mesh () |
int | Nelems () const |
int | NverticesElements () const |
int | NdofsElement () const |
int | Nnodes () const |
int | Ndims () const |
void | Resize_Connectivity (int nelem, int nvert_e) |
const std::vector< int > & | GetConnectivity () const |
std::vector< int > & | GetConnectivity () |
void | Resize_Coords (int nnodes, int ndim) |
const std::vector< double > & | GetCoords () const |
std::vector< double > & | GetCoords () |
void | SetValues (std::vector< double > &v, const std::function< double(double, double)> &func) const |
void | Debug () const |
void | Write_ascii_matlab (std::string const &fname, std::vector< double > const &v) const |
void | Visualize (std::vector< double > const &v) const |
Additional Inherited Members | |
Protected Member Functions inherited from Mesh | |
void | SetNelem (int nelem) |
void | SetNverticesElement (int nvert) |
void | SetNdofsElement (int ndof) |
void | SetNnode (int nnode) |
void | SetNdim (int ndim) |
2D finite element mesh of the square consiting of linear triangular elements.
Mesh_2d_3_square::Mesh_2d_3_square | ( | int | nx, |
int | ny, | ||
int | myid = 0 , |
||
int | procx = 1 , |
||
int | procy = 1 |
||
) |
Generates the f.e. mesh for the unit square.
[in] | nx | number of discretization intervals in x-direction |
[in] | ny | number of discretization intervals in y-direction |
[in] | myid | my MPI-rank / subdomain |
[in] | procx | number of ranks/subdomains in x-direction |
[in] | procy | number of processes in y-direction |
|
inlineoverride |
|
overridevirtual |
void Mesh_2d_3_square::SaveVectorP | ( | std::string const & | name, |
std::vector< double > const & | u | ||
) | const |
Stores the values of vector u
of (sub)domain into a file name
for further processing in gnuplot. The file stores rowise the x- and y- coordinates together with the value from u
. The domain [xl
, xr
] x [yb
, yt
] is discretized into nx
x ny
intervals.
[in] | name | basename of file name (file name will be extended by the rank number) |
[in] | u | local vector |
void Mesh_2d_3_square::SetF | ( | std::vector< double > & | f | ) | const |
void Mesh_2d_3_square::SetU | ( | std::vector< double > & | u | ) | const |