Skip to content
Snippets Groups Projects
Commit 4c6d6143 authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Don't hard-code 'Hencky-energy' anywhere; we are not restricted to that

[[Imported from SVN: r10109]]
parent 1c213147
No related branches found
No related tags found
No related merge requests found
......@@ -221,7 +221,7 @@ int main (int argc, char *argv[]) try
auto vtkDisplacement = Dune::make_shared<VTKBasisGridFunction<FEBasis,BlockVector<FieldVector<double,3> > > >
(feBasis, displacement, "Displacement");
vtkWriter.addVertexData(vtkDisplacement);
vtkWriter.write(resultPath + "hencky_homotopy_0");
vtkWriter.write(resultPath + "finite-strain_homotopy_0");
for (int i=0; i<numHomotopySteps; i++)
{
......@@ -252,13 +252,13 @@ int main (int argc, char *argv[]) try
StVenantKirchhoffEnergy<GridView,
FEBasis::LocalFiniteElement,
adouble> henckyEnergy(materialParameters,
adouble> elasticEnergy(materialParameters,
&neumannBoundary,
neumannFunction.get());
LocalADOLCStiffness<GridView,
FEBasis::LocalFiniteElement,
SolutionType> localADOLCStiffness(&henckyEnergy);
SolutionType> localADOLCStiffness(&elasticEnergy);
FEAssembler<FEBasis,SolutionType> assembler(gridView, &localADOLCStiffness);
......@@ -327,7 +327,7 @@ int main (int argc, char *argv[]) try
auto vtkDisplacement = Dune::make_shared<VTKBasisGridFunction<FEBasis,BlockVector<FieldVector<double,3> > > >
(feBasis, displacement, "Displacement");
vtkWriter.addVertexData(vtkDisplacement);
vtkWriter.write(resultPath + "hencky_homotopy_" + std::to_string(i+1));
vtkWriter.write(resultPath + "finite-strain_homotopy_" + std::to_string(i+1));
}
......
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