Closed axla-io closed 1 year ago
@dylan-copeland Do you know what enables the mesh deformation visualization in VisIt? Currently, it seems that the mesh is not deformed in VisIt for this particular code.
@dylan-copeland Do you know what enables the mesh deformation visualization in VisIt? Currently, it seems that the mesh is not deformed in VisIt for this particular code.
The mesh has to have its nodes updated in the simulation, as done in Laghos, for example LagrangianHydroOperator::UpdateMesh in laghos_solver.cpp. Otherwise, the original mesh is output by the simulation and read by VisIt.
Yes, but the thing is, it looks like this code is already updating nodes by the following lines:
GridFunction* nodes = &x_gf;
int owns_nodes = 0;
pmesh->SwapNodes(nodes, owns_nodes);
@copeland, no worries, it works now. the part I wrote above needs to be inside of the time loop. Thank you for your help. :)
@axla-io I will be ready to approve this PR once scripts/stylize.sh
is run. Please note that the master branch has been updated, so it would be best to pull from master first.
Example: Nonlinear Elastic Global pROM
Background and description
To extend the
libROM
library, I implemented a global parametric ROM for a nonlinear elastic cantilever problem.The program is based on ex10p in MFEM and the
mixed_nonlinear_diffusion
example inlibROM
.What's added
The file:
examples/prom/nonlinear_elasticity_global_rom.cpp
- which is the main program for the pROM exampleThis example adds:
How has it been tested?