dev_yi #1
@ -141,7 +141,9 @@ void gctl::meshdata::show_stats(std::ostream &os) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
os << "mean = (" << tmp_x.mean() << ", " << tmp_y.mean() << ", " << tmp_z.mean() << ")\n"
|
os << "max = (" << tmp_x.max() << ", " << tmp_y.max() << ", " << tmp_z.max() << ")\n"
|
||||||
|
<< "min = (" << tmp_x.min() << ", " << tmp_y.min() << ", " << tmp_z.min() << ")\n"
|
||||||
|
<< "mean = (" << tmp_x.mean() << ", " << tmp_y.mean() << ", " << tmp_z.mean() << ")\n"
|
||||||
<< "std = (" << tmp_x.std() << ", " << tmp_y.std() << ", " << tmp_z.std() << ")\n"
|
<< "std = (" << tmp_x.std() << ", " << tmp_y.std() << ", " << tmp_z.std() << ")\n"
|
||||||
<< "rms = (" << tmp_x.rms() << ", " << tmp_y.rms() << ", " << tmp_z.rms() << ")\n";
|
<< "rms = (" << tmp_x.rms() << ", " << tmp_y.rms() << ", " << tmp_z.rms() << ")\n";
|
||||||
}
|
}
|
||||||
@ -174,6 +176,16 @@ void gctl::meshdata::show_stats(std::ostream &os) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
os << "max = \n"
|
||||||
|
<< tmp_xx.max() << ", " << tmp_xy.max() << ", " << tmp_xz.max() << "\n"
|
||||||
|
<< tmp_yx.max() << ", " << tmp_yy.max() << ", " << tmp_yz.max() << "\n"
|
||||||
|
<< tmp_zx.max() << ", " << tmp_zy.max() << ", " << tmp_zz.max() << "\n";
|
||||||
|
|
||||||
|
os << "min = \n"
|
||||||
|
<< tmp_xx.min() << ", " << tmp_xy.min() << ", " << tmp_xz.min() << "\n"
|
||||||
|
<< tmp_yx.min() << ", " << tmp_yy.min() << ", " << tmp_yz.min() << "\n"
|
||||||
|
<< tmp_zx.min() << ", " << tmp_zy.min() << ", " << tmp_zz.min() << "\n";
|
||||||
|
|
||||||
os << "mean = \n"
|
os << "mean = \n"
|
||||||
<< tmp_xx.mean() << ", " << tmp_xy.mean() << ", " << tmp_xz.mean() << "\n"
|
<< tmp_xx.mean() << ", " << tmp_xy.mean() << ", " << tmp_xz.mean() << "\n"
|
||||||
<< tmp_yx.mean() << ", " << tmp_yy.mean() << ", " << tmp_yz.mean() << "\n"
|
<< tmp_yx.mean() << ", " << tmp_yy.mean() << ", " << tmp_yz.mean() << "\n"
|
||||||
@ -208,6 +220,7 @@ void gctl::meshdata::show_stats(std::ostream &os) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
os << "max = " << tmp.max() << ", min = " << tmp.min() << std::endl;
|
||||||
os << "mean = " << tmp.mean() << ", std = " << tmp.std() << ", rms = " << tmp.rms() << std::endl;
|
os << "mean = " << tmp.mean() << ", std = " << tmp.std() << ", rms = " << tmp.rms() << std::endl;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -78,12 +78,12 @@ void gctl::regular_grid::init(std::string in_name, std::string in_info, int xnum
|
|||||||
|
|
||||||
void gctl::regular_grid::show_mesh_dimension(std::ostream &os) const
|
void gctl::regular_grid::show_mesh_dimension(std::ostream &os) const
|
||||||
{
|
{
|
||||||
os << "node num: " << node_num_ << std::endl;
|
os << "Node num: " << node_num_ << std::endl;
|
||||||
os << "elem num: " << ele_num_ << std::endl;
|
os << "Elem num: " << ele_num_ << std::endl;
|
||||||
os << "x-range: " << rg_xmin << " -> " << rg_xmin + (rg_xnum - 1)*rg_dx << "\n";
|
os << "X-range: " << rg_xmin << " -> " << rg_xmin + (rg_xnum - 1)*rg_dx << "\n";
|
||||||
os << "y-range: " << rg_ymin << " -> " << rg_ymin + (rg_ynum - 1)*rg_dy << "\n";
|
os << "Y-range: " << rg_ymin << " -> " << rg_ymin + (rg_ynum - 1)*rg_dy << "\n";
|
||||||
os << "interval: " << rg_dx << ", " << rg_dy << "\n";
|
os << "Interval: " << rg_dx << ", " << rg_dy << "\n";
|
||||||
os << "dimension: " << rg_xnum << ", " << rg_ynum << "\n";
|
os << "Dimension: " << rg_xnum << ", " << rg_ynum << "\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user