20 #ifndef LIBMESH_PLT_LOADER_H 21 #define LIBMESH_PLT_LOADER_H 75 void read (
const std::string &
name);
82 const unsigned int version=10)
const;
185 const std::string &
var_name (
const unsigned int v)
const;
190 unsigned int var_type (
const unsigned int v)
const;
200 unsigned int zone_type (
const unsigned int z)
const;
205 const std::string &
zone_name (
const unsigned int z)
const;
210 unsigned int zone_pack (
const unsigned int z)
const;
215 unsigned int imax (
const unsigned int z)
const;
220 unsigned int jmax (
const unsigned int z)
const;
225 unsigned int kmax (
const unsigned int z)
const;
230 unsigned int n_nodes (
const unsigned int z)
const;
235 unsigned int n_elem (
const unsigned int z)
const;
245 const std::vector<std::vector<std::vector<float>>> &
get_data ()
const;
317 std::string &
var_name (
const unsigned int v);
322 unsigned int &
var_type (
const unsigned int v);
332 unsigned int &
zone_type (
const unsigned int z);
337 std::string &
zone_name (
const unsigned int z);
342 unsigned int &
zone_pack (
const unsigned int z);
347 unsigned int &
imax (
const unsigned int z);
352 unsigned int &
jmax (
const unsigned int z);
357 unsigned int &
kmax (
const unsigned int z);
430 std::vector<std::vector<std::vector<float>>>
_data;
436 std::vector<std::vector<int>>
_conn;
481 libmesh_assert_less (v, this->
n_vars());
493 libmesh_assert_less (v, this->
n_vars());
505 libmesh_assert_less (v, this->
n_vars());
517 libmesh_assert_less (v, this->
n_vars());
529 libmesh_assert_less (z, this->
n_zones());
541 libmesh_assert_less (z, this->
n_zones());
553 libmesh_assert_less (z, this->
n_zones());
565 libmesh_assert_less (z, this->
n_zones());
577 libmesh_assert_less (z, this->
n_zones());
589 libmesh_assert_less (z, this->
n_zones());
601 libmesh_assert_less (z, this->
n_zones());
602 libmesh_assert_equal_to (
_imax.size(), this->
n_zones());
612 libmesh_assert_less (z, this->
n_zones());
613 libmesh_assert_equal_to (
_imax.size(), this->
n_zones());
623 libmesh_assert_less (z, this->
n_zones());
624 libmesh_assert_equal_to (
_jmax.size(), this->
n_zones());
634 libmesh_assert_less (z, this->
n_zones());
635 libmesh_assert_equal_to (
_jmax.size(), this->
n_zones());
645 libmesh_assert_less (z, this->
n_zones());
646 libmesh_assert_equal_to (
_kmax.size(), this->
n_zones());
656 libmesh_assert_less (z, this->
n_zones());
657 libmesh_assert_equal_to (
_kmax.size(), this->
n_zones());
667 libmesh_assert_less (z, this->
n_zones());
670 libmesh_assert_greater (this->
zone_type(z), 1);
672 return this->
imax(z);
680 libmesh_assert_less (z, this->
n_zones());
683 libmesh_assert_greater (this->
zone_type(z), 1);
685 return this->
jmax(z);
693 libmesh_assert_less (z, this->
n_zones());
696 libmesh_assert_greater (this->
zone_type(z), 1);
703 const std::vector<std::vector<std::vector<float>>> &
715 #endif // LIBMESH_PLT_LOADER_H std::string name(const ElemQuality q)
Manages the family, order, etc. parameters for a given FE.
void set_n_zones(const unsigned int nz)
FEType elem_type(const unsigned int z) const
unsigned int n_vars() const
std::vector< std::vector< int > > _conn
std::vector< std::string > _zone_names
std::vector< std::vector< std::vector< float > > > _data
std::vector< unsigned int > _zone_pack
std::vector< unsigned int > _kmax
void read_point_data(std::istream &in, const unsigned int zn)
std::vector< unsigned int > _var_types
void set_n_vars(const unsigned int nv)
std::vector< unsigned int > _zone_types
const std::string & var_name(const unsigned int v) const
std::vector< unsigned int > _jmax
std::vector< unsigned int > _imax
void read(const std::string &name)
static const unsigned int NNodes[4]
unsigned int imax(const unsigned int z) const
const std::string & zone_name(const unsigned int z) const
std::vector< std::string > _var_names
unsigned int jmax(const unsigned int z) const
unsigned int zone_pack(const unsigned int z) const
PltLoader(const bool v=false)
void read_fepoint_data(std::istream &in, const unsigned int zn)
unsigned int n_nodes(const unsigned int z) const
const std::vector< std::vector< std::vector< float > > > & get_data() const
unsigned int var_type(const unsigned int v) const
const std::string & title() const
unsigned int n_zones() const
unsigned int kmax(const unsigned int z) const
void read_header(std::istream &in)
void read_block_data(std::istream &in, const unsigned int zn)
const std::string & version() const
unsigned int n_elem(const unsigned int z) const
void read_data(std::istream &in)
void read_feblock_data(std::istream &in, const unsigned int zn)
void write_dat(const std::string &name, const unsigned int version=10) const
unsigned int zone_type(const unsigned int z) const