|
[Sponsors] |
February 19, 2021, 07:49 |
setFields does not recognize inlet patch
|
#1 |
New Member
Theresa
Join Date: Dec 2020
Posts: 2
Rep Power: 0 |
Hello everyone,
I created a mesh from a DEM of a river with snappyHexMesh. I did the spillway tutorial of openFoam and I want to apply the interFoam solver at my case. My problem is the following: in the setFieldsDict, I created a box around a part of my geometry, including the inlet patch. The setFields utility works, but it does not set the alpha values to 1 at the inlet and at the atmosphere patch , it does set the alpha values to 1 at the walls and at the internal mesh. I checked already the bounding box, it is large enough to cover the region. defaultFieldValues ( volScalarFieldValue alpha.water 0 ); regions boxToCell { box (-100 -10 -10) (100 20 30); fieldValues ( volScalarFieldValue alpha.water 1 ); } ); Any suggestions what might be wrong? How can I fix it? Thank you for your replies! regards, Theresa |
|
September 8, 2023, 17:45 |
Problem Solved?
|
#2 |
New Member
Sarah Aguiar
Join Date: Sep 2023
Posts: 10
Rep Power: 3 |
Hi, did you reach a solution? I'm having the same problem.
|
|
September 11, 2023, 04:38 |
|
#3 |
Member
Tatsuya Shimizu
Join Date: Jul 2012
Posts: 42
Rep Power: 14 |
Hello
When applied to "PATCH", write as follows. see: OpenFOAM-v2212/tutorials/multiphase/interFoam/RAS/DTCHull/system/setFieldsDict defaultFieldValues ( volScalarFieldValue alpha.water 0 ); regions ( // Set cell values // (does zerogradient on boundaries) boxToCell { box (-999 -999 -999) (999 999 0.244); fieldValues ( volScalarFieldValue alpha.water 1 ); } // Set patch values (using ==) boxToFace { box (-999 -999 -999) (999 999 0.244); fieldValues ( volScalarFieldValue alpha.water 1 ); } );
__________________
Our Work: https://www.idaj.co.jp/product/ennovacfd/openfoam_gui/ Powered by Ennova : https://ennova-cfd.com/ Ennova's Channel Partners : http://www.wolfdynamics.com/ |
|
September 12, 2023, 18:09 |
Had Tried
|
#4 |
New Member
Sarah Aguiar
Join Date: Sep 2023
Posts: 10
Rep Power: 3 |
Hi! thanks for the reply, i set my setFields like this:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.3 | | \\ / A nd | Web: http://www.openfoam.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object setFieldsDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // defaultFieldValues ( volScalarFieldValue alpha.water 0 ); regions ( boxToCell { box (-10 0 -1) (57 20 1); fieldValues ( volScalarFieldValue alpha.water 1 ); } boxToFace { box (0 0 -1) (0 20 1); fieldValues ( volScalarFieldValue alpha.water 1 ); } ); Then in 0 time the inlet bondary is ok! but in the follow time steps the bondary got the same problem, staying all water or partial water where should be just air. Like the pic. Dis you saw something like this? have any tips? |
|
September 12, 2023, 19:09 |
|
#5 |
Member
Tatsuya Shimizu
Join Date: Jul 2012
Posts: 42
Rep Power: 14 |
Hello
What type of boundary conditions are you giving to the patch there? I mean, please indicate 0/alpha.* .
__________________
Our Work: https://www.idaj.co.jp/product/ennovacfd/openfoam_gui/ Powered by Ennova : https://ennova-cfd.com/ Ennova's Channel Partners : http://www.wolfdynamics.com/ |
|
September 13, 2023, 16:59 |
alpha.water
|
#6 |
New Member
Sarah Aguiar
Join Date: Sep 2023
Posts: 10
Rep Power: 3 |
Thanks for the reply, this is my alpha.water
ALPHA.WATER /*--------------------------------*- 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; object alpha.water; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField uniform 0; boundaryField { inlet { type waveAlpha; waveDictName waveDict; value uniform 0; } frontAndBack { type empty; } wall { type zeroGradient; } atmosphere { type inletOutlet; inletValue uniform 0; value uniform 0; } } // ************************************************** *********************** // |
|
September 13, 2023, 19:11 |
|
#7 |
Member
Tatsuya Shimizu
Join Date: Jul 2012
Posts: 42
Rep Power: 14 |
Hello
Maybe this is a "waveAlpha" problem. I don't know this type, so I can't judge if it is a bug or not.
__________________
Our Work: https://www.idaj.co.jp/product/ennovacfd/openfoam_gui/ Powered by Ennova : https://ennova-cfd.com/ Ennova's Channel Partners : http://www.wolfdynamics.com/ |
|
September 14, 2023, 17:58 |
Thank you
|
#8 |
New Member
Sarah Aguiar
Join Date: Sep 2023
Posts: 10
Rep Power: 3 |
I'll search about this. Thank you!
|
|
Tags |
inlet, interfoam, setfields, setfieldsdict, snappy hex mesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Wedge patch '*' is not planar | LilumDaru | OpenFOAM Meshing & Mesh Conversion | 7 | September 18, 2024 06:52 |
[Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 16:33 |
[Commercial meshers] Mesh conversion problem (fluent3DMeshToFoam) | Aadhavan | OpenFOAM Meshing & Mesh Conversion | 2 | March 8, 2018 02:47 |
Compressor Simulation using rhoPimpleDyMFoam | Jetfire | OpenFOAM Running, Solving & CFD | 107 | December 9, 2014 14:38 |
[GAMBIT] periodic faces not matching | Aadhavan | ANSYS Meshing & Geometry | 6 | August 31, 2013 12:25 |