CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Where to find information on dictionaries

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2014, 11:51
Default Where to find information on dictionaries
  #1
New Member
 
Mattia Tamellini
Join Date: Nov 2013
Posts: 3
Rep Power: 12
mattia is on a distinguished road
Hi everyone!

I hope I chose the right section to post to.

I was wondering where I could find some information on the various dictionaries used by OpenFOAM. I feel that the documentation is somewhat lacking in this sense: when I need to use something that is not covered in the user guide, where can I find information about it? I know there are the tutorials too, but the various utilites are only used and never explained or commented upon.

More precisely, I am currently trying to solve a multiphase moving mesh case similar to the one shown in the interDyMFoam/DTCHull tutorial, but I am finding it difficult to proper set up the dictionary since I don't know where to find some kind of list with all the possible entries for the dynamicMeshDict and their meaning. Also the wiki page (http://openfoamwiki.net/index.php/Ma...m#Dynamic_Mesh) was not helpful, since it is too concise.

Can you please point me to some references where the less basic OpenFOAM utilities are explained?

Thanks in advance
mattia is offline   Reply With Quote

Old   October 6, 2014, 12:22
Default
  #2
New Member
 
Vito Fasano
Join Date: Apr 2014
Posts: 14
Rep Power: 11
vitokad is on a distinguished road
Hi Mattia,

if I understand what you are searching, in the installation directory of OpenFOAM there are all dictionaries with all commands that you can use. If you do a search in the directory, for example "controlDict", you'll find a file called "controlDict" with all the commands that you can use. Copy it in your simulation's directory and modify it
vitokad is offline   Reply With Quote

Old   October 7, 2014, 04:23
Default
  #3
New Member
 
Mattia Tamellini
Join Date: Nov 2013
Posts: 3
Rep Power: 12
mattia is on a distinguished road
Hello Vito,

thanks a lot for the reply!
I am not sure I understand what you mean though. If I search for "dynamicMeshDict" in my OpenFOAM installation folder, this is what I get:
Code:
mattia@replicant:~$ of230
mattia@replicant:~$ cd $WM_PROJECT_DIR
mattia@replicant:OpenFOAM-2.3.0$ pwd
/home/mattia/OpenFOAM/OpenFOAM-2.3.0
mattia@replicant:OpenFOAM-2.3.0$ find . -name "dynamicMeshDict"
./tutorials/combustion/PDRFoam/flamePropagationWithObstacles/constant/dynamicMeshDict
./tutorials/multiphase/interFoam/laminar/damBreak/constant/dynamicMeshDict
./tutorials/multiphase/LTSInterFoam/DTCHull/constant/dynamicMeshDict
./tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/constant/dynamicMeshDict
./tutorials/multiphase/interDyMFoam/ras/sloshingTank3D/constant/dynamicMeshDict
./tutorials/multiphase/interDyMFoam/ras/sloshingTank3D6DoF/constant/dynamicMeshDict
./tutorials/multiphase/interDyMFoam/ras/testTubeMixer/constant/dynamicMeshDict
./tutorials/multiphase/interDyMFoam/ras/sloshingTank2D3DoF/constant/dynamicMeshDict
./tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/constant/dynamicMeshDict
./tutorials/multiphase/interDyMFoam/ras/sloshingTank2D/constant/dynamicMeshDict
./tutorials/multiphase/interDyMFoam/ras/sloshingTank3D3DoF/constant/dynamicMeshDict
./tutorials/multiphase/interDyMFoam/ras/floatingObject/constant/dynamicMeshDict
./tutorials/multiphase/interDyMFoam/ras/DTCHull/constant/dynamicMeshDict
./tutorials/multiphase/compressibleInterDyMFoam/ras/sloshingTank2D/constant/dynamicMeshDict
./tutorials/multiphase/interPhaseChangeDyMFoam/propeller/constant/dynamicMeshDict
./tutorials/multiphase/interMixingFoam/laminar/damBreak/constant/dynamicMeshDict
./tutorials/mesh/moveDynamicMesh/SnakeRiverCanyon/constant/dynamicMeshDict
./tutorials/mesh/foamyHexMesh/mixerVessel/constant/dynamicMeshDict
./tutorials/incompressible/pimpleDyMFoam/propeller/constant/dynamicMeshDict
./tutorials/incompressible/pimpleDyMFoam/mixerVesselAMI2D/constant/dynamicMeshDict
./tutorials/incompressible/pimpleDyMFoam/wingMotion/wingMotion2D_pimpleDyMFoam/constant/dynamicMeshDict
./tutorials/incompressible/pimpleDyMFoam/oscillatingInletACMI2D/constant/dynamicMeshDict
./tutorials/incompressible/pimpleDyMFoam/movingCone/constant/dynamicMeshDict
./tutorials/compressible/rhoPimpleDyMFoam/annularThermalMixer/constant/dynamicMeshDict
./src/dynamicFvMesh/dynamicRefineFvMesh/dynamicMeshDict
mattia@replicant:OpenFOAM-2.3.0$
The only file I thought might be what you were referring to is the last one, but I'm afraid it does not contain what I was looking for:
Code:
mattia@replicant:dynamicRefineFvMesh$ cat dynamicMeshDict 
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.0.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

//dynamicFvMeshLib   "libtopoChangerFvMesh.so";
dynamicFvMesh      dynamicRefineFvMesh;
//staticFvMesh;

mixerFvMeshCoeffs
{
    coordinateSystem
    {
        type            cylindrical;
        origin          (0 0 0);
        axis            (0 0 1);
        direction       (1 0 0);
    }

    rpm             10;

    slider
    {
        inside      insideSlider;
        outside     outsideSlider;
    }
}

// Refinement
dynamicRefineFvMeshCoeffs
{
    // Refine every refineInterval timesteps
    refineInterval 3;

    // Maximum refinement level (starts from 0)
    maxRefinement 2;

    // Maximum cell limit (approximate)
    maxCells 1000000;

    // volScalarField to base refinement on
    field gamma;

    // Which cells to un/refine: based on point values (simple averaging).
    // - refine pointCells of point value inbetween minLevel..maxLevel
    // - unrefine pointCells that are within nBufferLayers of points marked
    //   for refinement.
    minLevel 0.01;
    maxLevel 0.99;
    nBufferLayers 1;

    // Newly introduced patch points optionally get projected onto a surface
    //projectSurfaces ("fixedWalls4.stl");
    //projectPatches (fixedWalls);
    // Maximum project distance
    //projectDistance 1;

    // Fluxes to adapt. For newly created faces or split faces the flux
    // gets estimated from an interpolated volVectorField ('velocity')
    // First is name of the flux to adapt, second is velocity that will
    // be interpolated and inner-producted with the face area vector.
    correctFluxes ((phi U));
}

// ************************************************************************* //
mattia@replicant:dynamicRefineFvMesh$
Did I misunderstand your suggestion?

Thanks again for your help
mattia is offline   Reply With Quote

Old   October 7, 2014, 09:05
Default
  #4
New Member
 
Vito Fasano
Join Date: Apr 2014
Posts: 14
Rep Power: 11
vitokad is on a distinguished road
You understand right, but it is strange there is not a general dynamicMeshDict file that contains the possible commands..I'll try to look on my computer and I'lltell you
vitokad is offline   Reply With Quote

Old   October 8, 2014, 05:06
Default
  #5
New Member
 
Mattia Tamellini
Join Date: Nov 2013
Posts: 3
Rep Power: 12
mattia is on a distinguished road
Ok, I'll wait for your reply! Thanks a lot
mattia is offline   Reply With Quote

Reply

Tags
documentation, dynamic mesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR: unable to find library HJH CFX 6 February 26, 2019 06:52
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45
interchanging face information with cell information/ radiation flux UDF ximik FLUENT 1 May 4, 2011 16:34
where can I find the information about "common block"? mactonald Siemens 5 June 15, 2009 01:46
where can I find the information about all the common block? mactonald STAR-CD 0 May 31, 2009 04:49


All times are GMT -4. The time now is 04:16.