117 _xc.resize(nnodes *
ndim);
143 void SetValues(std::vector<double> &
v,
const std::function<
double(
double,
double)> &func)
const;
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;
329void GetBound(
int ib,
int nx,
int ny,
double const w[],
double s[]);
341void AddBound(
int ib,
int nx,
int ny,
double w[],
double const s[]);
374 return static_cast<int>(bedges.size());
377 std::vector<int> bedges;
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
std::vector< int > Index_DirichletNodes() const override
void SetU(std::vector< double > &u) const
~Mesh_2d_3_square() override
std::vector< int > Index_DirichletNodes() const override
void SaveVectorP(std::string const &name, std::vector< double > const &u) const
void SetF(std::vector< double > &f) const
const std::vector< double > & GetCoords() const
void Resize_Connectivity(int nelem, int nvert_e)
void Resize_Coords(int nnodes, int ndim)
std::vector< double > & GetCoords()
void SetNdofsElement(int ndof)
virtual std::vector< int > Index_DirichletNodes() const =0
void Write_ascii_matlab(std::string const &fname, std::vector< double > const &v) const
int NverticesElements() const
std::vector< int > & GetConnectivity()
void SetNverticesElement(int nvert)
const std::vector< int > & GetConnectivity() const
void SetValues(std::vector< double > &v, const std::function< double(double, double)> &func) const
void Visualize(std::vector< double > const &v) const
void GetBound(int ib, int nx, int ny, double const w[], double s[])
void AddBound(int ib, int nx, int ny, double w[], double const s[])