|
[Sponsors] |
dynamics Mesh Refinement based on vector field in openfoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 23, 2020, 08:47 |
dynamics Mesh Refinement based on vector field in openfoam
|
#1 |
Senior Member
Mehdi Baba Mehdi
Join Date: Jan 2011
Posts: 158
Rep Power: 15 |
I am using interDyMFoam as a solve and I want to have dynamic mesh rifinement based on velocity. The dynamicMeshDict is as follows:
Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.0.1 | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object dynamicMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dynamicFvMesh dynamicRefineFvMesh; dynamicRefineFvMeshCoeffs { // How often to refine refineInterval 1; // Field to be refinement on field U; // Refine field between lower..upper lowerRefineLevel 0.0 upperRefineLevel 0.001; // If value < unrefineLevel unrefine unrefineLevel 0.1; // Have slower than 2:1 refinement nBufferLayers 24; // Refine cells only up to maxRefinement levels maxRefinement 2; // Stop refinement if maxCells reached maxCells 100000000; // Stop autorefinement after n timesteps maxTimeAutoRefine -1; // Flux field and corresponding velocity field. Fluxes on changed // faces get recalculated by interpolating the velocity. Use 'none' // on surfaceScalarFields that do not need to be reinterpolated. correctFluxes ( (phi_0 U) (phi U) ); // Write the refinement level as a volScalarField dumpLevel false; } // ************************************************************************* // But when I run the case I got the error Code:
it is not a volScalarField, it is a volVectorField |
|
Tags |
dynamic mesh adaption, openfaom-5, vector of velocity |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SimpleFoam & Theater | jipai | OpenFOAM Running, Solving & CFD | 3 | June 18, 2019 10:11 |
[snappyHexMesh] Snappy Hex Mesh - issue with smoothness of the model edges | olek.warc | OpenFOAM Meshing & Mesh Conversion | 1 | August 31, 2018 11:31 |
[snappyHexMesh] Edge Refinement | fracasce | OpenFOAM Meshing & Mesh Conversion | 3 | December 2, 2017 13:30 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 14:24 |
[snappyHexMesh] crash sHM | H25E | OpenFOAM Meshing & Mesh Conversion | 11 | November 10, 2014 11:27 |