CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   dynamicMeshDict (http://www.cfd-online.com/Forums/openfoam/102847-dynamicmeshdict.html)

samiam1000 June 4, 2012 09:56

dynamicMeshDict
 
Dear All,

I am trying to undertand how the dynamicMeshDict file is written.

I have understood that I have 4 parametres and I have to set some fields.

Actually, I don't know the syntax that I have to use. Could anyone help? Is there a good documentation about this solver?
Thanks a lot,

Samuele.

Here is my dictionary and below the error that I get. Thanks again,

Samuele

Code:

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

dynamicFvMesh      dynamicMotionSolverFvMesh;

motionSolverLibs ("libfvMotionSolvers.so");

solver            displacementLaplacian;

diffusivity      quadratic;


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

Code:

lab@lab-laptop:~/Documenti/cases_OF/OF_case19_closed_cabinet/base$ moveDynamicMesh
/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.1.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.1.0-0bc225064152
Exec  : moveDynamicMesh
Date  : Jun 04 2012
Time  : 15:24:37
Host  : "lab-laptop"
PID    : 7707
Case  : /home/lab/Documenti/cases_OF/OF_case19_closed_cabinet/base
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Selecting dynamicFvMesh dynamicMotionSolverFvMesh
Selecting motion solver: displacementLaplacian
Selecting motion diffusion: quadratic


--> FOAM FATAL IO ERROR:
attempt to read beyond EOF

file: /home/lab/Documenti/cases_OF/OF_case19_closed_cabinet/base/constant/dynamicMeshDict::diffusivity at line 23.

    From function ITstream::read(token&)
    in file db/IOstreams/Tstreams/ITstream.C at line 83.

FOAM exiting


mturcios777 June 4, 2012 13:09

Hi Sam,

The motion solvers give very little indication as to how to format. The best way to find out (although slow) is to read the code for the constructor and see what it expects when reading certain keyword. Just guessing based on this error there probably needs to be a subdictionary or extra entry that defines the coefficients of the quadratic function for the diffusivity.

samiam1000 June 8, 2012 06:36

Hi,

could you show me the path to the right files??

Thanks a lot,

Sam

mturcios777 June 8, 2012 11:23

The files are in $FOAM_SRC/fvMotionSolver/fvMotionSolvers/displacement/laplacian (for the displacementLaplacian motion solver which you appear to be using. In the *.C file, it shows that you should be looking for an object of type motionDiffusivity. I don't know where that is, so you'll have to look for that one (doxygen is your friend)


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