Skip to content
Snippets Groups Projects
Commit 81d9551b authored by Boman Romain's avatar Boman Romain
Browse files

improve postpro

parent b979bb3b
No related branches found
No related tags found
1 merge request!2Extractors
Pipeline #23983 passed
......@@ -24,11 +24,45 @@ Post::~Post()
std::cout << "~Post()\n";
}
/// rebuild solution vectors for gmsh and add views
/// rebuild solution vectors for gmsh and add views:
///
/// X
/// Y
/// Z
/// displacement_vector
/// force_vector
/// stress_tensor
/// stress_xx
/// stress_yy
/// stress_zz
/// stress_xy
/// stress_xz
/// stress_yz
/// strain_tensor
/// strain_xx
/// strain_yy
/// strain_zz
/// strain_xy
/// strain_xz
/// strain_yz
/// smooth_stress_tensor
/// smooth_stress_xx
/// smooth_stress_yy
/// smooth_stress_zz
/// smooth_stress_xy
/// smooth_stress_xz
/// smooth_stress_yz
/// smooth_strain_tensor
/// smooth_strain_xx
/// smooth_strain_yy
/// smooth_strain_zz
/// smooth_strain_xy
/// smooth_strain_xz
/// smooth_strain_yz
void Post::build_views()
{
std::cout << "creating views...\n";
std::cout << "creating views..." << std::endl;
// nodal dofs
add_dofs_view(solver.pbl, solver.dofs, solver.X, solver.dofPart, solver.dofIdx);
......
......@@ -225,12 +225,12 @@ def solve(p={}):
'sigxy': ('smooth_stress_xy', 'MPa'),
'sigxz': ('smooth_stress_xz', 'MPa'),
'sigyz': ('smooth_stress_yz', 'MPa'),
'epsxx': ('strain_xx', ''),
'epsyy': ('strain_yy', ''),
'epszz': ('strain_zz', ''),
'epsxy': ('strain_xy', ''),
'epsxz': ('strain_xz', ''),
'epsyz': ('strain_yz', '')
'epsxx': ('smooth_strain_xx', ''),
'epsyy': ('smooth_strain_yy', ''),
'epszz': ('smooth_strain_zz', ''),
'epsxy': ('smooth_strain_xy', ''),
'epsxz': ('smooth_strain_xz', ''),
'epsyz': ('smooth_strain_yz', '')
}
for extr in p['extractors']:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment