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/)
-   -   How to usefvMotionSolverpointPatchFieldsderived (http://www.cfd-online.com/Forums/openfoam-solving/59359-how-usefvmotionsolverpointpatchfieldsderived.html)

jaswi August 20, 2007 10:10

Hi community.. Can some bod
 
Hi community..

Can some body please explain how one can use the point patch fields given in :
/home/singh/OpenFOAM/OpenFOAM-1.4.1/src/fvMotionSolver/pointPatchFields/derived

There are following options available:
--> angularOscillatingDisplacement
--> angularOscillatingVelocity
--> oscillatingDisplacement
--> oscillatingVelocity

As far as my understanding goes they have to do something with the meshMotion :-).

The next doubt i have is this:

the velocityLaplacian solver requires pointMotionU and cellMotionU. can one use the above pointFields to specify the pointMotionU and cellMotionU like this:
FoamFile
{
version 2.0;
format ascii;

root "interFoam";
case "meshMotion";
instance "0";
local "";

class volVectorField;
object cellMotionU;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
cube
{
type oscillatingDisplacement;
amplitude (0.5 0 0);
omega 0.25;
value uniform (0 0 0);

}
}
FoamFile
{
version 2.0;
format ascii;

root "interFoam";
case "meshMotion";
instance "0";
local "";

class pointVectorField;
object pointMotionU;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
cube
{
type oscillatingDisplacement;
amplitude (0.5 0 0);
omega 0.25;
value uniform (0 0 0);
}
}

If this is completely wrong then please advice how one could specify the pointMotionU and cellMotionU ,
which is required to use the velocityLaplacian solver

With the above settings i get the following error
--> FOAM FATAL ERROR :
gradientInternalCoeffs cannot be called for a defaultFvPatchField (actual type oscillatingDisplacement)
on patch cube of field U in file "interFoam/oscillatoryMotion/0/U"
You are probably trying to solve for a field with a default boundary condition.

From function defaultFvPatchField<type>::gradientInternalCoeffs( ) const
in file fields/fvPatchFields/basic/default/defaultFvPatchField.C at line 694.



Thanks alot
Jaswinder

yoyo October 26, 2007 04:30

Hi, Jaswinder. I have met
 
Hi, Jaswinder.
I have met the same problem with you . Have you solved the problem???


All times are GMT -4. The time now is 23:28.