#include <tutorials/vec-0/src/FluidLevel.hpp>
Definition at line 20 of file FluidLevel.hpp.
◆ GetFluidLevel()
◆ getParams()
Definition at line 23 of file FluidLevel.hpp.
30 auto cubit_meshset_ptr =
31 m_field.
getInterface<MeshsetsManager>()->getCubitMeshsetPtr(ms_id,
33 std::vector<double> block_data;
34 CHKERR cubit_meshset_ptr->getAttributes(block_data);
35 if (block_data.size() != 1 + 3 + 3) {
37 "Expected that block has two attribute");
39 density = block_data[0];
40 gravity = {block_data[1], block_data[2], block_data[3]};
41 zero_pressure = {block_data[4], block_data[5], block_data[6]};
45 <<
"Density " << density;
47 <<
"Gravity " << gravity[0] <<
" " << gravity[1] <<
" " << gravity[2];
49 <<
"Zero pressure " << zero_pressure[0] <<
" " << zero_pressure[1]
50 <<
" " << zero_pressure[2];
52 ents = boost::make_shared<Range>();
54 m_field.
get_moab().get_entities_by_handle(cubit_meshset_ptr->meshset,
The documentation for this struct was generated from the following file: