Skip to content
Snippets Groups Projects
Commit 48ab7359 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

write grid and deformation into a single file; fix geometric moments of the...

write grid and deformation into a single file;  fix geometric moments of the rod, to really model a quadratic cross-section

[[Imported from SVN: r1537]]
parent 47457d86
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,7 @@ int main (int argc, char *argv[]) try
// Create a solver for the rod problem
// ///////////////////////////////////////////
RodAssembler<RodGridType> rodAssembler(rodGrid);
rodAssembler.setShapeAndMaterial(1, 1, 1, 2.5e5, 0.3);
rodAssembler.setShapeAndMaterial(1, 1/12, 1/12, 2.5e5, 0.3);
RodSolver<RodGridType> rodSolver;
rodSolver.setup(rodGrid,
......@@ -536,8 +536,10 @@ int main (int argc, char *argv[]) try
// //////////////////////////////
// Output result
// //////////////////////////////
LeafAmiraMeshWriter<GridType>::writeGrid(grid, "grid.result");
LeafAmiraMeshWriter<GridType>::writeBlockVector(grid, x3d, "grid.sol");
LeafAmiraMeshWriter<GridType> amiraMeshWriter(grid);
amiraMeshWriter.addVertexData(x3d, grid.leafIndexSet());
amiraMeshWriter.write("grid.result");
writeRod(rodX, "rod3d.result");
// for (int i=0; i<rodX.size(); i++)
......
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