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

hack removal: computeAveragePressure takes a single combined force/torque vector now

[[Imported from SVN: r6847]]
parent c07a7936
No related branches found
No related tags found
No related merge requests found
...@@ -388,24 +388,15 @@ int main (int argc, char *argv[]) try ...@@ -388,24 +388,15 @@ int main (int argc, char *argv[]) try
RigidBodyMotion<3>::TangentVector resultantForceTorque RigidBodyMotion<3>::TangentVector resultantForceTorque
= rodAssembler.getResultantForce(complex.couplings_[interfaceName].rodInterfaceBoundary_, rodX); = rodAssembler.getResultantForce(complex.couplings_[interfaceName].rodInterfaceBoundary_, rodX);
// separate into translational and rotational part
FieldVector<double,dim> resultantForce, resultantTorque;
for (int j=0; j<dim; j++) {
resultantForce[j] = resultantForceTorque[j];
resultantTorque[j] = resultantForceTorque[dim+j];
}
// Flip orientation // Flip orientation
resultantForce *= -1; resultantForceTorque *= -1;
resultantTorque *= -1;
std::cout << "resultant force and torque: " << resultantForceTorque << std::endl;
std::cout << "resultant force: " << resultantForce << std::endl;
std::cout << "resultant torque: " << resultantTorque << std::endl;
VectorType neumannValues(rhs3d.size()); VectorType neumannValues(rhs3d.size());
// 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
computeAveragePressure<GridType::LeafGridView>(resultantForce, resultantTorque, computeAveragePressure<GridType::LeafGridView>(resultantForceTorque,
complex.couplings_[interfaceName].continuumInterfaceBoundary_, complex.couplings_[interfaceName].continuumInterfaceBoundary_,
rodX[0].r, rodX[0].r,
neumannValues); neumannValues);
......
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