|
[Sponsors] |
August 22, 2010, 17:24 |
BC in openFoam
|
#1 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
hi dear foamer
how i can use a value in a file as my boundary condition ? for example for patch inlet for pressure i want that boundary in inlet change as i change the value of pSat in constant directory transporperties file: inlet { type fixedValue; value $FOAM_CASE/constant/transporperties/pSat; } |
|
August 23, 2010, 16:12 |
|
#2 | |
New Member
Dominic Piro
Join Date: Dec 2009
Location: South Kingstown, RI
Posts: 11
Rep Power: 16 |
Quote:
I have made a few of my own BC's in foam that read in data from files. You can use input file streams (IFStream class) to read in files. I got the original code I use from $FOAM_SRC/dynamicFvMesh/solidBodyMotionFvMesh/solidBodyMotionFunctions/SKA/SKA.C, so I suggest that as a starting point. I do not know if this would be the most ideal option for you, but I'm sure you could get it to work. I hope this helps, Dominic |
||
August 25, 2010, 03:43 |
|
#3 |
Member
Alex
Join Date: Apr 2010
Posts: 32
Rep Power: 16 |
Did you take a look at the user manual section 4.2.9?
There it is exactly explained how to use a value from a file. For an example, take a look at the motorBike tutorial of simpleFoam. |
|
August 30, 2010, 00:41 |
|
#5 |
Member
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16 |
Hi Nima,
Just a wild guess, I think you need a boundary data file like the one in pimpleFoam. Or you can input some forAll and if else command directly in your solver... Regards, Robert |
|
September 1, 2010, 18:47 |
|
#6 |
New Member
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Dear Foamer!!
how i can define a variable (non constant) boundary condition (pressure inlet),for example for patch total pressure i want that boundary in inlet changes at every iteration step, i have value in files which come from real test. Any idea please! Best regards. |
|
September 2, 2010, 00:29 |
|
#7 |
Member
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16 |
Hi Abdel,
Please find this discussion http://www.cfd-online.com/Forums/ope...onditions.html Otherwise, if the properties you want to vary with time is not a volScalarField (NO_READ in createFields.H) then you can do based from my previous post. Regards, Robert |
|
October 28, 2011, 19:48 |
continuity BC
|
#8 |
New Member
Lidia
Join Date: Oct 2011
Posts: 13
Rep Power: 15 |
hi,
I am new to OpenFoam, does anybody know how to set a continuity BC in OpenFOAM? Thanks in advance |
|
October 30, 2011, 10:54 |
|
#10 |
New Member
Lidia
Join Date: Oct 2011
Posts: 13
Rep Power: 15 |
thanks for reply, i use interFoam to simulate the droplet break-up in a t-junction
and i need continuity BC(for pressure,velocity and alpha1) for the patch between vertical and horizontal arm because i tried to merge (with mergePathPairs) the two blocks but the simulation result not is what is expected: changing several BC i obtain that the fluid stop at this patch or a continuous flow. |
|
October 30, 2011, 12:29 |
|
#11 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
are you sure your problem is the boundary condition between horizontal and vertical patches? i think you have done the right work yet and using merge patches to merge two blocks i think its better to open a new thread and put some of ur result and what you are expecting from result in it! different issues from mesh resolution or solver limitation or overall conditions or initial conditions cause your problem! and it think here the patch issue is not ur problem
|
|
November 3, 2011, 00:00 |
|
#12 |
New Member
Lidia
Join Date: Oct 2011
Posts: 13
Rep Power: 15 |
Ok,thanks a lot for your advice
|
|
July 6, 2013, 17:35 |
|
#13 |
Member
subhendu
Join Date: Jun 2013
Location: kolkata,india
Posts: 39
Rep Power: 13 |
hi,
can u tell me how to write partial velocity differential condition for outlet |
|
Tags |
boundary condition, read from file |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 06:56 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |
OpenFOAM Debian packaging current status problems and TODOs | oseen | OpenFOAM Installation | 9 | August 26, 2007 14:50 |