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/)
-   -   interDyMFoam for axisymmetric geometry (http://www.cfd-online.com/Forums/openfoam-solving/64817-interdymfoam-axisymmetric-geometry.html)

antonio_ing May 25, 2009 15:17

interDyMFoam for axisymmetric geometry
 
Hi foamers

I'm working with a student that has to study movements of an object in a highly viscous fluid surrounded by air. The geometry is axysimmetric and i have already done the geometry. How can i set the phase, since the setField command doesn't do anything. I'm doing something stupid i know, but i have no experience in interFoam. So, can you help me. How can i set the region with gamma=1 like in the dambreak tutorial? everytime i ran setField paraview doesn't show me any change

phsieh2005 May 26, 2009 06:52

Hi,

Check your dimension/units to see you they are consistent. setFields is the most convient way to do this.

Pei

antonio_ing May 26, 2009 14:57

here there is my gamma file:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5-dev |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object gamma;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 0 0 0 0];

internalField uniform 0;

boundaryField
{
movingWall
{
type zeroGradient;
}
farFieldMoving
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
fixedWall
{
type fixedValue;
value uniform 0;
}
axis
{
type symmetryPlane;
}
left
{
type zeroGradient;
}
farField
{
type zeroGradient;
}
back
{
type wedge;
}
front
{
type wedge;
}
}


and my setfieldDict file

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

defaultFieldValues
(
volScalarFieldValue gamma 0
volVectorFieldValue U (0 0 0)
);

regions
(
boxToCell
{
box (-0.1 4 -1) (0 0 1);

fieldValues
(
volScalarFieldValue gamma 1
);
}
);
the region inside the box (that is in my case a wedge,does it change something???) is where i would like to have gamma=1. Also i got this result when i run interDyMFoam:

keyword agglomerator is undefined in dictionary ""

file: from line 0 to line 0.

From function dictionary::lookupEntry(const word& keyword) const
in file db/dictionary/dictionary.C at line 213.

FOAM exiting
what can i do?


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