CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Problem with my setField

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 1, 2019, 07:27
Default Problem with my setField
  #1
New Member
 
Deepanker Chaudhary
Join Date: Oct 2019
Location: France
Posts: 7
Rep Power: 6
ShanuNith is on a distinguished road
hey
I want to do air entrainment simulation uing 2 cylinders which needs to be submerged completely in the highly visous pool. they are situated a 100 mm below the interafce of the vicous liquid and the air. But while executing setFields, my alpha.liquid entry as internalField uniform 1 is automatically updates which was originally set to zero. Also using set fileds i should get a list of non uniform entries but that is absent. I dont know why this is happening.

Please looking forward for any help.



alpha.liquid file

*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format binary;
class volScalarField;
location "0";
object alpha.liquid;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 0 0 0 0];

internalField uniform 0;

boundaryField
{
leftWall
{
type zeroGradient;
}
rightWall
{
type zeroGradient;
}
lowerWall
{
type zeroGradient;
}
atmosphere
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
cylinder1Wall
{
type zeroGradient;
}
cylinder2Wall
{
type zeroGradient;
}
defaultFaces
{
type empty;
}
}


// ************************************************** *********************** //




/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


blockMesh dict




convertToMeters 0.001;

vertices
(
(0 0 -1) // 0
(10 0 -1) // 1
(17.32233 17.6777 -1) // 2
(35 25 -1) // 3
(52.67767 17.6777 -1) // 4
(60 0 -1) // 5
(52.67767 -17.6777 -1) // 6
(35 -25 -1) // 7
(17.32233 -17.6777 -1) // 8
(350 17.6777 -1) // 9
(350 0 -1) // 10
(350 -17.6777 -1) // 11
(350 250 -1) // 12
(350 -250 -1) // 13
(350 250 -1) // 14
(-350 250 -1) // 15
(-350 250 -1) // 16
(-350 17.6777 -1) // 17
(-350 0 -1) // 18
(-350 -17.6777 -1) // 19
(-350 -250 -1) // 20
(-52.67767 -250 -1) // 21
(-35 -250 -1) // 22
(-17.32233 -250 -1) // 23
(0 -250 -1) // 24
(17.3233 -250 -1) // 25
(35 -250 -1) // 26
(52.67767 -250 -1) // 27
(52.67767 250 -1) // 28
(35 250 -1) // 29
(17.32233 250 -1) // 30
(0 250 -1) // 31
(-17.32233 250 -1) // 32
(-35 250 -1) // 33
(-52.67767 250 -1) // 34
(-10 0 -1) // 35
(-17.32233 17.6777 -1) // 36
(-35 25 -1) // 37
(-52.67767 17.6777 -1) // 38
(-60 0 -1) // 39
(-52.67767 -17.6777 -1) // 40
(-35 -25 -1) // 41
(-17.32233 -17.6777 -1) // 42
(0 -17.6777 -1) // 43
(0 17.6777 -1) // 44 front co-ordinates
(0 0 1) // 45 0'
(10 0 1) // 46 1'
(17.32233 17.6777 1) // 47 2'
(35 25 1) // 48 3'
(52.67767 17.6777 1) // 49 4'
(60 0 1) // 50 5'
(52.67767 -17.6777 1) // 51 6'
(35 -25 1) // 52 7'
(17.32233 -17.6777 1) // 53 8'
(350 17.6777 1) // 54 9'
(350 0 1) // 55 10'
(350 -17.6777 1) // 56 11'
(350 250 1) // 57 12'
(350 -250 1) // 58 13'
(350 250 1) // 59 14'
(-350 250 1) // 60 15'
(-350 250 1) // 61 16'
(-350 17.6777 1) // 62 17'
(-350 0 1) // 63 18'
(-350 -17.6777 1) // 64 19'
(-350 -250 1) // 65 20'
(-52.67767 -250 1) // 66 21'
(-35 -250 1) // 67 22'
(-17.32233 -250 1) // 68 23'
(0 -250 1) // 69 24'
(17.3233 -250 1) // 70 25'
(35 -250 1) // 71 26'
(52.67767 -250 1) // 72 27'
(52.67767 250 1) // 73 28'
(35 250 1) // 74 29'
(17.32233 250 1) // 75 30'
(0 250 1) // 76 31'
(-17.32233 250 1) // 77 32'
(-35 250 1) // 78 33'
(-52.67767 250 1) // 79 34'
(-10 0 1) // 80 35'
(-17.32233 17.6777 1) // 81 36'
(-35 25 1) // 82 37'
(-52.67767 17.6777 1) // 83 38'
(-60 0 1) // 84 39'
(-52.67767 -17.6777 1) //85 40'
(-35 -25 1) // 86 41'
(-17.32233 -17.6777 1) // 87 42'
(0 -17.6777 1) // 88 43'
(0 17.6777 1) // 89 44'

);

blocks
(
hex (35 0 44 36 80 45 89 81) (20 10 1) simpleGrading (1 1 1) // 1
hex (36 44 31 32 81 89 76 77) (20 10 1) simpleGrading (1 1 1) // 2
hex (37 36 32 33 82 81 77 78) (20 10 1) simpleGrading (1 1 1) // 3
hex (38 37 33 34 83 82 78 79) (20 10 1) simpleGrading (1 1 1) // 4
hex (17 38 34 16 62 83 79 61) (10 10 1) simpleGrading (1 1 1) // 5
hex (18 39 38 17 63 84 83 62) (10 10 1) simpleGrading (1 1 1) // 6
hex (19 40 39 18 64 85 84 63) (10 10 1) simpleGrading (1 1 1) // 7
hex (20 21 40 19 65 66 85 64) (10 10 1) simpleGrading (1 1 1) // 8
hex (21 22 41 40 66 67 86 85) (20 10 1) simpleGrading (1 1 1) // 9
hex (22 23 42 41 67 68 87 86) (20 10 1) simpleGrading (1 1 1) // 10
hex (23 24 43 42 68 69 88 87) (20 10 1) simpleGrading (1 1 1) // 11
hex (42 43 0 35 87 88 45 80) (20 10 1) simpleGrading (1 1 1) // 12
hex (0 1 2 44 45 46 47 89) (20 10 1) simpleGrading (1 1 1) // 1'
hex (43 8 1 0 88 53 46 45) (20 10 1) simpleGrading (1 1 1) // 2'
hex (24 25 8 43 69 70 53 88) (20 10 1) simpleGrading (1 1 1) // 3'
hex (25 26 7 8 70 71 52 53) (20 10 1) simpleGrading (1 1 1) // 4'
hex (26 27 6 7 71 72 51 52) (20 10 1) simpleGrading (1 1 1) // 5'
hex (27 13 11 6 72 58 56 51) (10 10 1) simpleGrading (1 1 1) // 6'
hex (6 11 10 5 51 56 55 50) (10 10 1) simpleGrading (1 1 1) // 7'
hex (5 10 9 4 50 55 54 49) (10 10 1) simpleGrading (1 1 1) // 8'
hex (4 9 12 28 49 54 57 73) (10 10 1) simpleGrading (1 1 1) // 9'
hex (3 4 28 29 48 49 73 74) (20 10 1) simpleGrading (1 1 1) // 10'
hex (2 3 29 30 47 48 74 75) (20 10 1) simpleGrading (1 1 1) // 11'
hex (44 2 30 31 89 47 75 76) (20 10 1) simpleGrading (1 1 1) // 12'
// hex (16 12 14 15 61 57 59 60) (160 20 1)simpleGrading (1 1 1) // 13'

);

edges
(
arc 35 36 (-13.349364 12.5 -1) // first
arc 80 81 (-13.349364 12.5 1) // first '
arc 36 37 (-28.52952 24.148145 -1) // second
arc 81 82 (-28.52952 24.148145 1) // second '
arc 37 38 (-47.5 21.65063 -1) // third
arc 82 83 (-47.5 21.65063 1) // third '
arc 38 39 (-56.65063 12.5 -1) // forth
arc 83 84 (-56.65063 12.5 1) // forth '
arc 39 40 (-56.65063 -12.5 -1) // fifth
arc 84 85 (-56.65063 -12.5 1) // fifth '
arc 40 41 (-47.5 -21.65063 -1) // sixth
arc 85 86 (-47.5 -21.65063 1) // sixth '
arc 41 42 (-28.52952 -24.148145 -1) // seventh
arc 86 87 (-28.52952 -24.148145 1) // seventh '
arc 42 35 (-13.349364 -12.5 -1) // eight
arc 87 80 (-13.349364 -12.5 1) // eight '
arc 5 4 (56.65063 12.5 -1) // first first
arc 50 49 (56.65063 12.5 1) // first first '
arc 4 3 (47.5 21.65063 -1) // second second
arc 49 48 (47.5 21.65063 1) // econd second '
arc 3 2 (28.52952 24.148145 -1) // third third
arc 48 47 (28.52952 24.148145 1) // third third '
arc 2 1 (13.349364 12.5 -1) // forth forth
arc 47 46 (13.349364 12.5 1) // forth forth '
arc 1 8 (13.349364 -12.5 -1) // fifth fifth
arc 46 53 (13.349364 -12.5 1) // fifth fifth '
arc 8 7 (28.52952 -24.148145 -1) // sixth sixth
arc 53 52 (28.52952 -24.148145 1) // sixth sixth '
arc 7 6 (47.5 -21.65063 -1) // seventh seventh
arc 52 51 (47.5 21.65063 1) // seventh seventh '
arc 6 5 (56.65063 12.5 -1) // eight eight
arc 51 50 (56.65063 12.5 1) // eight eight '
);

boundary
(
leftWall
{
type wall;
faces
(
(19 20 65 64)
(18 19 64 63)
(17 18 63 62)
(16 17 62 61)

);
}
rightWall
{
type wall;
faces
(
(13 11 56 58)
(11 10 55 56)
(10 9 54 55)
(9 12 57 54)

);
}
lowerWall
{
type wall;
faces
(
(27 13 58 72)
(26 27 72 71)
(25 26 71 70)
(24 25 70 69)
(23 24 69 68)
(22 23 68 67)
(21 22 67 66)
(20 21 66 65)
);
}
atmosphere
{
type patch;
faces
(
(34 16 61 79)
(33 34 79 78)
(32 33 78 77)
(31 32 77 76)
(30 31 76 75)
(29 30 75 74)
(28 29 74 73)
(12 28 73 57)
);
}
cylinder1Wall
{
type wall;
faces
(
(36 35 80 81)
(37 36 81 82)
(38 37 82 83)
(39 38 83 84)
(40 39 84 85)
(41 40 85 86)
(42 41 86 87)
(35 42 87 80)

);
}
cylinder2Wall
{
type wall;
faces
(
(4 5 50 49)
(3 4 49 48)
(2 3 48 47)
(1 2 47 46)
(8 1 46 53)
(7 8 53 52)
(6 7 52 51)
(5 6 51 50)

);
}
);

mergePatchPairs
(
);

// ************************************************** *********************** //



setFields file



/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

defaultFieldValues
(
volScalarFieldValue alpha.liquid 0
);

regions
(
boxToCell
{
box (-350 -250 -1) (350 200 1);
fieldValues
(
volScalarFieldValue alpha.liquid 1
);
}
);


// ************************************************** *********************** //
ShanuNith is offline   Reply With Quote

Reply


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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


All times are GMT -4. The time now is 12:05.