dune-composites (unstable)
computeStresses.hh
8void calculateStresses(MODEL& model, V& x0, const GV1& gv1, const GFS& gfs, MBE& mbe, int dofel = 60){
26 typedef Dune::PDELab::GridFunctionSpace<GV, FEM_stress, Dune::PDELab::NoConstraints, Scalar_VectorBackend> SCALAR_P1GFS;
27 SCALAR_P1GFS p1gfs_00(gv,fem_stress); p1gfs_00.name("stress00"); SCALAR_P1GFS p1gfs_11(gv,fem_stress); p1gfs_11.name("stress11");
28 SCALAR_P1GFS p1gfs_22(gv,fem_stress); p1gfs_22.name("stress22"); SCALAR_P1GFS p1gfs_12(gv,fem_stress); p1gfs_12.name("stress12");
29 SCALAR_P1GFS p1gfs_02(gv,fem_stress); p1gfs_02.name("stress02"); SCALAR_P1GFS p1gfs_01(gv,fem_stress); p1gfs_01.name("stress01");
32 typedef Dune::PDELab::PowerGridFunctionSpace <SCALAR_P1GFS,6,VectorBackend,Dune::PDELab::EntityBlockedOrderingTag> P1GFS;
40 typedef Dune::PDELab::GridOperator<GFS,P1GFS,Dune::PDELab::getStress<GV,MODEL,60>,MBE,RF,RF,RF,NoTrafo,NoTrafo> GOStress;
48 model.sizeStressVector(native(stress).size()); // Make sure stress contain in model class is the right size
57 vtkwriter.write(model.vtk_stress_output,model.stress_Plot_ascii ? Dune::VTK::ascii : Dune::VTK::appendedraw);
63void calculateStressesUG(MODEL& model, V& x0, const GV1& gv1, const GFS& gfs, MBE& mbe, int dofel = 12){
76 typedef Dune::PDELab::GridFunctionSpace<GV, FEM_stress, Dune::PDELab::NoConstraints, Scalar_VectorBackend> SCALAR_P1GFS;
77 SCALAR_P1GFS p1gfs_00(gv,fem_stress); p1gfs_00.name("stress00"); SCALAR_P1GFS p1gfs_11(gv,fem_stress); p1gfs_11.name("stress11");
78 SCALAR_P1GFS p1gfs_22(gv,fem_stress); p1gfs_22.name("stress22"); SCALAR_P1GFS p1gfs_12(gv,fem_stress); p1gfs_12.name("stress12");
79 SCALAR_P1GFS p1gfs_02(gv,fem_stress); p1gfs_02.name("stress02"); SCALAR_P1GFS p1gfs_01(gv,fem_stress); p1gfs_01.name("stress01");
81 typedef Dune::PDELab::PowerGridFunctionSpace <SCALAR_P1GFS,6,VectorBackend,Dune::PDELab::EntityBlockedOrderingTag> P1GFS;
88 typedef Dune::PDELab::GridOperator<GFS,SCALAR_P1GFS,Dune::PDELab::countElem,MBE,RF,RF,RF,NoTrafo,NoTrafo> GOCnt;
103 typedef Dune::PDELab::GridOperator<GFS,P1GFS,Dune::PDELab::getStressUG<GV,MODEL,DGF,12>,MBE,RF,RF,RF,NoTrafo,NoTrafo> GOStress;
111 model.sizeStressVector(native(stress).size()); // Make sure stress contain in model class is the right size
