|
[Sponsors] |
November 11, 2011, 07:06 |
profile boundary condition
|
#1 |
Senior Member
Shashwat
Join Date: Nov 2011
Posts: 107
Rep Power: 14 |
Hai
I am doing blood flow simulation. I am going to use transient profile pressure as an inlet boundary condition. I follow the steps as in the tutorial below http://www.edr.no/blogg/ansys_blogge...nsient_profile Pressure is my inlet boundary condition I don't know how to setup pressure profile in the boundary details>mass and momentum>option>relative pressure. Please help me Thank you for your kind help Regards shashwat pressure1.jpg |
|
November 11, 2011, 11:58 |
|
#2 |
Senior Member
Join Date: Apr 2009
Posts: 531
Rep Power: 20 |
Has anybody validated that approach? I'm not convinced it's accurate since you would be using a distance weighted interpolation method to interpolate in time.
|
|
November 13, 2011, 01:29 |
pressure profile_ urgent help needed
|
#3 |
Senior Member
Shashwat
Join Date: Nov 2011
Posts: 107
Rep Power: 14 |
Dear all
please find the attached pressure with respect to time data I would like to use this as an input . Kindly help me how to set up this in the inlet Thank you Regards shaswat |
|
November 13, 2011, 17:54 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143 |
Use a 1D interpolation function and use the function for your boundary condition value.
|
|
November 14, 2011, 02:25 |
|
#5 | |
Senior Member
Shashwat
Join Date: Nov 2011
Posts: 107
Rep Power: 14 |
Quote:
Please find the attached document for your perusal. Please comment on the following 1. Is my profile boundary correct? 2. I applied the following settings in the boundary details>mass and momentum>option>total pressure (stable)>Relative pressure>inlet.pressure(t) Thank you Regards Shashwat |
||
February 6, 2015, 01:42 |
|
#6 |
Member
Join Date: Oct 2013
Location: Malaysia
Posts: 39
Rep Power: 12 |
Dear Shaswat,
May I know how are you able to export spatial field [t] as I could only extract [x],[y],[z] ? Thanks. |
|
February 6, 2015, 04:44 |
|
#7 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143 |
The file shown about was not exported but appears to be generated by hand.
Exporting the time variable is simply a matter of exporting the x,y,z field at each time step. This will get pretty tedious after a while so you will probably want a session file to automate it for you. |
|
February 8, 2015, 21:11 |
|
#8 |
Member
Join Date: Oct 2013
Location: Malaysia
Posts: 39
Rep Power: 12 |
Yup, it become very tedious especially when you have a large bunch of time steps. So, can anyone gives me some ideas on how to write the session file and load it? I only manage to try on scripting and batch processing tutorial.
|
|
February 8, 2015, 22:24 |
|
#9 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143 |
Start recording a session file, then do a few time steps and stop the session file. Load the session file up in a text editor and you should be able to figure out the syntax, it is not too complex. Then to generate a session file which will do the whole thing you can:
* copy/paste the text file and manually update things like the time step number * write a python/matlab/whatever program which generates the test file and do a loop to generate the repetitive bit * Use CFD-Post perl capabilities to do the looping directly. I generally do the second option because I know python pretty well and I could not be bothered learning perl. But several people on this forum know perl pretty well so some would choose the perl option. If you don't want to code anything then do it the first way, it does not take that long to do unless you are talking about hundreds of time steps. |
|
February 9, 2015, 07:26 |
|
#10 |
Member
Join Date: Oct 2013
Location: Malaysia
Posts: 39
Rep Power: 12 |
Dear Glen,
I will use the first method since I have no knowledge about coding. I have a question whereby I fail to initiate profile data if I manually program spatial field with x[m], y[m], z[m], t[s] as it can only accept three coordinates. Let say if i combine outlet.fixed mixture.temperature(x,y,t) + outlet.fixed mixture.temperature (z,t) in static temperature variables? Is it correct if I program it in such a way? Last edited by dotapro; February 10, 2015 at 05:03. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mixed inflow/outflow downstream boundary condition question | peob | OpenFOAM Running, Solving & CFD | 3 | February 3, 2017 11:54 |
velocity profile inlet boundary condition question | Lcw | FLUENT | 3 | August 3, 2012 06:53 |
CFX Solver : Sudden crash | Hervé | CFX | 2 | June 16, 2008 07:40 |
applying profile data as a boundary condition | vadivel | CFX | 1 | June 9, 2007 08:11 |
Pressure Boundary Condition | Matt Umbel | Main CFD Forum | 0 | January 11, 2002 11:06 |