CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Conversion 13 14 of dynamicBodyFvMesh (http://www.cfd-online.com/Forums/openfoam-solving/59632-conversion-13-14-dynamicbodyfvmesh.html)

lr103476 May 11, 2007 10:36

Hi everybody, The followi
 
Hi everybody,


The following piece of code occurs in the dynamicBodyFvMesh library. My question is, how do I translate this piece of code to the new openFoam 1.4? I slowly begin to understand the new approach of the motionSolver stuff. Certain occurances of tetDecompostionMotionSolver can just be replaced with motionSolver, but the following piece I do not understand....

==================================================

tetPointVectorField& motionU = mSolver.motionU();

if
(
motionU.boundaryField()[bodyPatchID_].type()
== fixedValueTetPolyPatchVectorField::typeName
)
{
fixedValueTetPolyPatchVectorField& motionUBodyPatch =
refCast<fixedvaluetetpolypatchvectorfield>
(
motionU.boundaryField()[bodyPatchID_]
);

motionUBodyPatch == (trans + rot)/time().deltaT().value();
}

==================================================

Regards and thanks,
Frank

fra76 June 19, 2007 05:13

Hi Frank! Did you resolve thi
 
Hi Frank!
Did you resolve this problem? How?

Francesco

lr103476 June 19, 2007 05:38

not yet, busy with other thing
 
not yet, busy with other things. Just waiting till Hrvoje transfers his stuff to 1.4. Basically, I only need the dynamicBodyFvMesh.

Frank


All times are GMT -4. The time now is 14:51.