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

bugfix: rod interface boundary wasn't written to the RodContinuumComplex

[[Imported from SVN: r6803]]
parent 55b6cd31
No related branches found
No related tags found
No related merge requests found
...@@ -213,7 +213,7 @@ int main (int argc, char *argv[]) try ...@@ -213,7 +213,7 @@ int main (int argc, char *argv[]) try
BitSetVector<1> rodCouplingBitfield(rodX.size(),false); BitSetVector<1> rodCouplingBitfield(rodX.size(),false);
// Using that index 0 is always the left boundary for a uniformly refined OneDGrid // Using that index 0 is always the left boundary for a uniformly refined OneDGrid
rodCouplingBitfield[0] = true; rodCouplingBitfield[0] = true;
LeafBoundaryPatch<RodGridType> rodCouplingBoundary(*complex.rodGrids_["rod"], rodCouplingBitfield); complex.couplings_[interfaceName].rodInterfaceBoundary_.setup(*complex.rodGrids_["rod"], rodCouplingBitfield);
// then for the continuum // then for the continuum
LevelBoundaryPatch<GridType> coarseInterfaceBoundary(*complex.continuumGrids_["continuum"], 0); LevelBoundaryPatch<GridType> coarseInterfaceBoundary(*complex.continuumGrids_["continuum"], 0);
...@@ -385,7 +385,7 @@ int main (int argc, char *argv[]) try ...@@ -385,7 +385,7 @@ int main (int argc, char *argv[]) try
// /////////////////////////////////////////////////////////// // ///////////////////////////////////////////////////////////
FieldVector<double,dim> resultantForce, resultantTorque; FieldVector<double,dim> resultantForce, resultantTorque;
resultantForce = rodAssembler.getResultantForce(rodCouplingBoundary, rodX, resultantTorque); resultantForce = rodAssembler.getResultantForce(complex.couplings_[interfaceName].rodInterfaceBoundary_, rodX, resultantTorque);
// Flip orientation // Flip orientation
resultantForce *= -1; resultantForce *= -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