|
[Sponsors] |
June 4, 2012, 10:56 |
dynamicMeshDict
|
#1 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
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 |
|
June 4, 2012, 14:09 |
|
#2 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
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. |
|
June 8, 2012, 07:36 |
|
#3 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Hi,
could you show me the path to the right files?? Thanks a lot, Sam |
|
June 8, 2012, 12:23 |
|
#4 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
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)
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Question about DynamicMeshDict | jordi.muela | OpenFOAM Meshing & Mesh Conversion | 1 | April 24, 2012 12:46 |
GGI dynamicMeshDict keyword 'direction' | lordvon | OpenFOAM Running, Solving & CFD | 0 | April 14, 2012 21:31 |
dynamicMeshDict , axis | aqua | OpenFOAM Pre-Processing | 0 | February 8, 2012 16:01 |
dynamicMeshDict documentation | camox | OpenFOAM | 2 | December 7, 2010 10:43 |
SKA.C reads fileName read from dynamicMeshDict without expanding it | mwild | OpenFOAM Bugs | 3 | August 3, 2010 07:50 |