|
[Sponsors] |
Some Problems about the Boundary Conditions in OpenFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 31, 2015, 18:00 |
|
#21 |
Member
Sandra
Join Date: Oct 2014
Posts: 58
Rep Power: 12 |
HERE'S what i get
Checking geometry... Overall domain bounding box (0 0 0) (0.0001 0.00057 5e-05) Mesh (non-empty, non-wedge) directions (1 1 0) Mesh (non-empty) directions (1 1 0) All edges aligned with or perpendicular to non-empty directions. Boundary openness (2.34216e-17 0 4.68431e-17) OK. Max cell openness = 1.0982e-16 OK. Max aspect ratio = 43.6937 OK. Minimum face area = 1.14433e-10. Maximum face area = 5e-09. Face area magnitudes OK. Min volume = 1.14433e-14. Max volume = 5.72165e-14. Total volume = 2.85e-12. Cell volumes OK. Mesh non-orthogonality Max: 0 average: 0 Non-orthogonality check OK. Face pyramids OK. Max skewness = 0.197788 OK. Coupled point location match (average 0) OK. Mesh OK. End |
|
October 31, 2015, 18:57 |
|
#22 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Then shouldn't the file "tcath.dat" have these values?
Code:
( (0.00000 2.5) (0.00025 3) (0.00035 4) ) Code:
Overall domain bounding box (0 0 0) (0.0001 0.00057 5e-05) |
|
November 1, 2015, 04:05 |
|
#23 |
Member
Sandra
Join Date: Oct 2014
Posts: 58
Rep Power: 12 |
i am checking the last time step in paraview. and i have this for my .dat file
Code:
((0e-6 4) (25e-6 3) (35e-6 2.5) ) i also tried Code:
( (0e-6 2.5) (25e-6 3) (35e-6 4) ) i am checking the last time step in paraview. and i have this for my .dat file Code:
((0e-6 4) (25e-6 3) (35e-6 2.5) ) Code:
( (570e-6 2.5) (545e-6 3) (535e-6 4) ) I notice that you use a name different from the .dat file name as I do. COuld that be causing my problems? Last edited by wyldckat; November 1, 2015 at 16:32. Reason: merged posts that were a few minutes apart |
|
November 1, 2015, 16:39 |
|
#24 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Sandra,
It's best to use the first column ordered from smallest to largest: Code:
( (535e-6 4) (545e-6 3) (570e-6 2.5) ) Quote:
Try running this command inside the case folder: Code:
find -name tcath.dat If this doesn't help, then I strongly suggest that you take a step back and test with another test case, preferably one of OpenFOAM's tutorial cases. I say this because sometimes there are certain details that we only see when we look at them from a different perspective. Best regards, Bruno
__________________
|
||
November 2, 2015, 06:51 |
|
#25 | |
Member
Sandra
Join Date: Oct 2014
Posts: 58
Rep Power: 12 |
Quote:
|
||
November 2, 2015, 18:08 |
|
#26 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
If you used blockMesh, check how you defined the blocks. For example, in the tutorial case "incompressible/icoFoam/cavity", the following definitions were used: Code:
convertToMeters 0.1; vertices ( (0 0 0) (1 0 0) (1 1 0) (0 1 0) (0 0 0.1) (1 0 0.1) (1 1 0.1) (0 1 0.1) ); blocks ( hex (0 1 2 3 4 5 6 7) (20 20 1) simpleGrading (1 1 1) ); |
||
November 2, 2015, 18:11 |
|
#27 |
Member
Sandra
Join Date: Oct 2014
Posts: 58
Rep Power: 12 |
oh, my resolution is 100micronx5.7micronx50micron
|
|
November 7, 2015, 12:31 |
|
#28 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Sandra,
I hope you've figured out what the problem was. If not, we need a common example to work with, in order to make it easier to diagnose what it is the exact problem. Otherwise we'll be going back and forth with a guessing game for which I don't have enough time for. If you can share your case at least privately, send me a PM with a download link for the case on DropBox or similar file sharing service. If not, then please use one of OpenFOAM's tutorials as a base for creating a similar case structure and then share it here. That way it's a lot easier to figure out what the exact problem is. Best regards, Bruno |
|
November 9, 2015, 10:53 |
|
#29 |
Member
Sandra
Join Date: Oct 2014
Posts: 58
Rep Power: 12 |
will PM you
|
|
November 9, 2015, 14:54 |
|
#30 | |
Member
Sandra
Join Date: Oct 2014
Posts: 58
Rep Power: 12 |
what did you set as your internalField at 0/U?
It seems that mine only reads the internalField. Sandra Quote:
|
||
November 15, 2015, 14:41 |
|
#31 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Sandra,
I've finally managed to take a look into this today. Quote:
Quoting from the PM you sent me: Quote:
For example, since the fields "pang" and "tang" are used only for conventional calculations and are not part of equations, then their boundary conditions aren't updated and are used as-is after loading. In order to force the update you need to call the method "correctBoundaryConditions()". For example, for the field "pang" you need to call this method right after loading it: Code:
Info<< "Reading pang\n" << endl; volScalarField pang ( IOobject ( "pang", runTime.timeName(), anodeMesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), anodeMesh ); pang.correctBoundaryConditions(); If you do this for all of the relevant fields, then things should finally work as intended. Best regards, Bruno |
|||
December 14, 2015, 10:39 |
|
#32 |
Member
Sandra
Join Date: Oct 2014
Posts: 58
Rep Power: 12 |
Hi Bruno,
I did try your suggestion but it seems that it's still only reading the internal field. I PMed you the revised solver (and case). Best, Sandra |
|
December 28, 2015, 19:19 |
|
#33 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Sandra,
I have to say that I feel a bit lost on where I should look at to see the problem. Here are the steps I took:
Code:
( (69e-6 0) (70e-6 0.17) (90e-6 0.17) (91e-6 0.3) (570e-6 0.3) ) If you follow these same steps, are you able to see the same results? What is the exact problem I should be looking for? Best regards, Bruno
__________________
|
|
January 11, 2016, 07:55 |
|
#34 |
Member
Sandra
Join Date: Oct 2014
Posts: 58
Rep Power: 12 |
how do I get the "represented field" and "time" to show in the plot?
|
|
February 24, 2016, 14:53 |
|
#36 |
Member
Sandra
Join Date: Oct 2014
Posts: 58
Rep Power: 12 |
2D plot view
|
|
March 25, 2016, 13:12 |
|
#37 | |
Member
Join Date: Feb 2016
Posts: 41
Rep Power: 10 |
Quote:
i have run 2 cases (icoFOam and nonNewtonian Icofoam). I see you are defining the initial conditions in your p and u files as individual scalars. All of my are x,y,x component of u or p at that boundary. How are you describing x,y,x with just an individual value? Last edited by LeeRuns; March 25, 2016 at 13:12. Reason: formatting |
||
March 28, 2016, 16:34 |
|
#38 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Sandra: Sorry, but only today did I finally manage to take a look into this. Attached is the image "ParaView 4.4 2D plot options.jpg" that shows how it can be configured in ParaView 4.4. I could not find similar settings on ParaView 4.1.0. Notice 3 important details on the left side of the image, inside the "Properties" tab:
@LeeRuns: Quote:
Code:
value uniform 1e5; Code:
value nonuniform 234(1e5 1e5 .... 1e4 ... 1e5); In order to set values depending on X, Y, Z positions, you can use funkySetFields: http://openfoamwiki.net/index.php/Co...funkySetFields Best regards, Bruno
__________________
|
||
April 15, 2017, 04:26 |
boundary condition
|
#39 |
New Member
Bharadwaj Bhushan
Join Date: Mar 2017
Posts: 19
Rep Power: 9 |
hello guys,
I am confused with the boundary conditions. I want to simulate nozzle flow with water as fluid. I have these values- velocity at inlet = 1.46m/s total pressure = 6 Bar simpleFoam with either kepsilon or kOmega I set the conditions as velocity - inlet (fixedValue 1.43), outlet (zeroGradient) pressure - inlet (zeroGradient), outlet (fixedValue uniform 0) when I see it in the paraview, the pressure at the inlet shows 2000 pascal, but the actual value is around 5 Bar. Actually I am confused with the pressure boundary conditions. Whether in simpleFoam, pressure in 0/p takes static or dynamic or total pressure ?. please can anybody suggest appropriate boundary condition for my case ? thank you Bharadwaj |
|
April 15, 2017, 08:35 |
|
#40 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
> total pressure = 6 Bar
I think you mean the pressure difference between inlet and outlet. You may set this difference and calculate the velocity or set the velocity and calculate the pressure difference. If you have measured values and the results of your calculation differ, you have a good example to learn how OF needs to be set and which degree of accuracy can be reached with fluid simulations. Please keep in mind: When simulating incompressible, OF takes the kinematic pressure.
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Implementation of boundary conditions for FVM | Tom | Main CFD Forum | 7 | August 26, 2014 06:58 |
symmetry boundary conditions in cfx | lost.identity | CFX | 41 | May 22, 2013 08:21 |
LES of channel with cylic boundary mapping boundary conditions | Thomas Baumann | Siemens | 0 | August 24, 2009 10:53 |
compressible boundary conditions | vivian | Main CFD Forum | 8 | April 24, 2006 07:23 |
Boundary conditions? | Tom | Main CFD Forum | 0 | November 5, 2002 02:54 |