|
[Sponsors] |
October 27, 2023, 00:27 |
Difficulty in setting setFields
|
#1 |
New Member
Rasheed
Join Date: Oct 2023
Posts: 1
Rep Power: 0 |
Hi,
I have been struggling to set the alpha.water field using boxToCell. I have tried to follow the suggestons in Trying to understand: What is the "boxToCell"? as well as the dambreak tutorial. However I have not succeeded after several attempts. My blockMeshDict is as follows : /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.7.1 | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // scale 1; vertices ( (0.0 -0.02 0.0) // 0 (5.0 -0.02 0.0) // 1 (5.0 -0.02 0.7) // 2 (0.0 -0.02 0.7) // 3 (0.0 0.0 0.0) // 4 (5.0 0.0 0.0) // 5 (5.0 0.0 0.7) // 6 (0.0 0.0 0.7) // 7 (10.0 -0.02 0.4) // 8 (10.0 -0.02 0.7) // 9 (10.0 0.0 0.4) // 10 (10.0 0.0 0.7) // 11 ); blocks ( hex (0 1 5 4 3 2 6 7) (20 1 20) simpleGrading (1 1 1) hex (1 8 10 5 2 9 11 6) (20 1 20) simpleGrading (1 1 1) ); edges ( ); patches ( patch inlet ( (0 4 7 3) ) patch outlet ( (8 10 11 9) ) wall bottom ( (0 1 5 4) (1 8 10 5) ) patch atmosphere ( (3 2 6 7) (2 9 11 6) ) empty frontAndBack ( (0 1 2 3) (4 5 6 7) (1 8 9 2) (5 10 11 6) ) ); mergePatchPairs ( ); // ************************************************** *********************** // and the setFieldsDict is as follows : /*---------------------------------------------------------------------------*\ | ========= | | | \\ / 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 (-1 -1 -1) (6 1 0.5); fieldValues ( volScalarFieldValue alpha.water 1 ); } ); would it be possible to make suggestions as to select the rectangular prism to set the water field ? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Manual decomposition using setFields | RL-S | OpenFOAM Pre-Processing | 8 | July 3, 2023 08:51 |
Wierd results after running setFields without getting an error in terminal | vava10 | OpenFOAM Pre-Processing | 3 | January 15, 2021 11:12 |
using chemkin | JMDag2004 | OpenFOAM Pre-Processing | 2 | March 8, 2016 22:38 |
rhoSimplecFoam with setFields | sino75 | OpenFOAM Pre-Processing | 0 | March 11, 2015 04:08 |
[snappyHexMesh] determining displacement for added points | CFDnewbie147 | OpenFOAM Meshing & Mesh Conversion | 1 | October 22, 2013 09:53 |