Go to the documentation of this file.
117 _xc.resize(nnodes *
ndim);
177 void Visualize(std::vector<double>
const &
v)
const;
212 std::vector<int> _ia;
213 std::vector<double> _xc;
231 Mesh_2d_3_square(
int nx,
int ny,
int myid = 0,
int procx = 1,
int procy = 1);
243 void SetU(std::vector<double> &u)
const;
249 void SetF(std::vector<double> &f)
const;
272 void SaveVectorP(std::string
const &name, std::vector<double>
const &u)
const;
291 void GetCoordsInRectangle(
int nx,
int ny,
double xl,
double xr,
double yb,
double yt,
300 void GetConnectivityInRectangle(
int nx,
int ny,
int ia[]);
306 std::array<int, 4> _neigh;
329 void GetBound(
int ib,
int nx,
int ny,
double const w[],
double s[]);
341 void AddBound(
int ib,
int nx,
int ny,
double w[],
double const s[]);
374 return static_cast<int>(bedges.size());
377 std::vector<int> bedges;
void Write_ascii_matlab(std::string const &fname, std::vector< double > const &v) const
virtual std::vector< int > Index_DirichletNodes() const =0
void Resize_Coords(int nnodes, int ndim)
void Resize_Connectivity(int nelem, int nvert_e)
const std::vector< int > & GetConnectivity() const
Mesh(int ndim, int nvert_e=0, int ndof_e=0)
void SetNverticesElement(int nvert)
std::vector< double > & GetCoords()
void SetValues(std::vector< double > &v, const std::function< double(double, double)> &func) const
Mesh_2d_3_square(int nx, int ny, int myid=0, int procx=1, int procy=1)
void AddBound(int ib, int nx, int ny, double w[], double const s[])
void GetBound(int ib, int nx, int ny, double const w[], double s[])
~Mesh_2d_3_square() override
void SetU(std::vector< double > &u) const
void SetF(std::vector< double > &f) const
void Visualize(std::vector< double > const &v) const
std::vector< int > Index_DirichletNodes() const override
void SaveVectorP(std::string const &name, std::vector< double > const &u) const
Mesh_2d_3_matlab(std::string const &fname)
function vertex minimal boundary edge info in an ASCII file Matlab indexing is stored(starts with 1). % % The output file format is compatible with Mesh_2d_3_matlab nnode
void SetNdofsElement(int ndof)
std::vector< int > Index_DirichletNodes() const override
std::vector< int > & GetConnectivity()
int NverticesElements() const
const std::vector< double > & GetCoords() const