Skip to content
Snippets Groups Projects
Commit 507da084 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Make the TNNMG-data accessible to ParaView

parent 7a7bcc93
No related branches found
No related tags found
No related merge requests found
...@@ -375,7 +375,7 @@ int main(int argc, char *argv[]) { ...@@ -375,7 +375,7 @@ int main(int argc, char *argv[]) {
{ // Compute von Mises stress and write everything to a file { // Compute von Mises stress and write everything to a file
auto *displacement = auto *displacement =
new BasisGridFunction<P1Basis, VectorType>(p1Basis, u1); new BasisGridFunction<P1Basis, VectorType>(p1Basis, u4);
VonMisesStressAssembler<GridType> localStressAssembler(E, nu, VonMisesStressAssembler<GridType> localStressAssembler(E, nu,
displacement); displacement);
FunctionalAssembler<P0Basis>(p0Basis) FunctionalAssembler<P0Basis>(p0Basis)
...@@ -386,7 +386,7 @@ int main(int argc, char *argv[]) { ...@@ -386,7 +386,7 @@ int main(int argc, char *argv[]) {
auto displacement_ptr = auto displacement_ptr =
Dune::make_shared<VTKBasisGridFunction<P1Basis, VectorType>>( Dune::make_shared<VTKBasisGridFunction<P1Basis, VectorType>>(
p1Basis, u1, "displacement"); p1Basis, u4, "displacement");
auto vonmises_ptr = auto vonmises_ptr =
Dune::make_shared<VTKBasisGridFunction<P0Basis, CellVectorType>>( Dune::make_shared<VTKBasisGridFunction<P0Basis, CellVectorType>>(
p0Basis, vonMisesStress, "stress"); p0Basis, vonMisesStress, "stress");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment