Skip to content
Snippets Groups Projects
Commit e97dadab authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Rename method writeDisplacement

Because that's a copy'n'paste left-over.  The method does not actually
write a displacement.
parent 94017dc2
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ const int order = 1; ...@@ -48,7 +48,7 @@ const int order = 1;
using namespace Dune; using namespace Dune;
template <class Basis, class Vector> template <class Basis, class Vector>
void writeDisplacement(const Basis& basis, const Vector& deformation, const FieldMatrix<double,2,2>& F0, std::string filename) void writeDeformationGradientInfo(const Basis& basis, const Vector& deformation, const FieldMatrix<double,2,2>& F0, std::string filename)
{ {
// Compute the determinant per element, for better understanding of the solution // Compute the determinant per element, for better understanding of the solution
Functions::LagrangeBasis<typename Basis::GridView,0> p0Basis(basis.gridView()); Functions::LagrangeBasis<typename Basis::GridView,0> p0Basis(basis.gridView());
...@@ -238,7 +238,7 @@ int main (int argc, char *argv[]) try ...@@ -238,7 +238,7 @@ int main (int argc, char *argv[]) try
} }
// Output initial iterate // Output initial iterate
writeDisplacement(feBasis, x, F0, resultPath + "quasiconvexity-test-micromorphic-initial"); writeDeformationGradientInfo(feBasis, x, F0, resultPath + "quasiconvexity-test-micromorphic-initial");
////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////
// Create an assembler for the energy functional // Create an assembler for the energy functional
...@@ -374,7 +374,7 @@ int main (int argc, char *argv[]) try ...@@ -374,7 +374,7 @@ int main (int argc, char *argv[]) try
elasticEnergy->setLc(parameterSet.get<double>("L_c")); elasticEnergy->setLc(parameterSet.get<double>("L_c"));
std::cout << "Energy with regularization: " << assembler.computeEnergy(x) << std::endl; std::cout << "Energy with regularization: " << assembler.computeEnergy(x) << std::endl;
writeDisplacement(feBasis, x, F0, resultPath + "quasiconvexity-test-micromorphic-result_" + std::to_string(L_c) + "_" + std::to_string(x0)); writeDeformationGradientInfo(feBasis, x, F0, resultPath + "quasiconvexity-test-micromorphic-result_" + std::to_string(L_c) + "_" + std::to_string(x0));
} catch (Exception& e) { } catch (Exception& e) {
std::cout << e.what() << std::endl; std::cout << e.what() << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment