|
[Sponsors] |
January 8, 2017, 21:42 |
Question about CFX user fortran
|
#1 |
New Member
FeiTeng
Join Date: Jan 2017
Location: Beijing,China
Posts: 12
Rep Power: 9 |
Hi all:
I have a question about CFX user fortran: my case is a pipe flow (streamwise :x, x=0,100mm). I wanna extract velocity at Plane A(x=50mm) and do some modification as inlet boundary conditions (at every time step). How can I do it with user fortran ? Now i can only use fortran program to deal with datas in one plane. But how to use it in two planes ???? I need some help or some information . Thanks |
|
January 8, 2017, 22:13 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
You might be able to do this in CEL and not require fortran at all. Can you describe what you are trying to do?
Also note that this sort of configuration (linking inlet parameters to a calculated value in the middle of the flow) is not physically realistic and is therefore likely to have convergence difficulties. Hopefully there is a better way of doing it. |
|
January 8, 2017, 23:02 |
|
#3 | |
New Member
FeiTeng
Join Date: Jan 2017
Location: Beijing,China
Posts: 12
Rep Power: 9 |
Quote:
How can I use CEL to make it ?? And do you need to view .cfx file ? Thanks a lot |
||
January 9, 2017, 00:16 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
Can you do it using translational periodic boundaries? Then the coupling from the outlet to the inlet is handled automatically, and you can include things like flow rates and pressure drops. If you want to do anything more complicated you can use source terms.
Translational periodic boundaries are just a standard feature of CFX and do not require any fortran so will be much simpler to implement. |
|
January 9, 2017, 01:36 |
|
#5 | |
New Member
FeiTeng
Join Date: Jan 2017
Location: Beijing,China
Posts: 12
Rep Power: 9 |
Quote:
And can I make it by using source terms?? I have not used it before. |
||
January 9, 2017, 02:18 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
Please explain why you need the mid plane velocity, what alpha does and how that scales the input velocity.
The details of what you intend to do make a big difference in how you implement it, so you need to explain what you are intending to do. |
|
January 9, 2017, 02:53 |
|
#7 | |
New Member
FeiTeng
Join Date: Jan 2017
Location: Beijing,China
Posts: 12
Rep Power: 9 |
Quote:
reference: Generation of Turbulent Inflow Data for Spatially-Developing Boundary Layer Simulations. the factor in this paper is 'weighting function W(n)' http://www.iawe.org/Proceedings/CWE2006/MA3-04.pdf |
||
January 9, 2017, 16:58 |
|
#8 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
It will be a tricky piece of fortran to implement what these authors did. You are going to have to match up nodes on the plane to nodes on the inlet, extract the fluctuating component and adjust the mean flow to get the correct bulk flow. I am not going to be able to help you much with this as I have never implemented something like that.
I do not understand your first post, I cannot see where you combine the results of two planes in this approach. The periodic translational boundary approach I mentioned previously is slightly different to this, but very similar in concept. It is far easier to implement in CFX as it will not require any fortran, just a source term to drive the bulk flow at the correct velocity. A suspect this approach would give you results virtually indistinguishable from the approach used by the authors you linked to, when done properly. |
|
January 9, 2017, 21:36 |
|
#9 | |
New Member
FeiTeng
Join Date: Jan 2017
Location: Beijing,China
Posts: 12
Rep Power: 9 |
Quote:
|
||
Tags |
cfx, cfx 13.0 and fortran, user fortran |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
User FORTRAN for Monitoring in CFX | jir2830 | CFX | 1 | August 19, 2015 18:48 |
User Fortran, list of boundaries? | gsal | CFX | 0 | May 1, 2015 15:35 |
Using Fortran with CFX: How to connect Fortran to CFX? | l.te | CFX | 0 | October 21, 2012 12:42 |
CFX arc-modeling, User Fortran, CEL.... | Bloshchitsyn Vladimir | CFX | 0 | October 15, 2007 07:17 |
CFX5 and user FORTRAN | Worth | CFX | 9 | December 25, 2003 02:43 |