CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Question about CFX user fortran

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By tengf689

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 8, 2017, 21:42
Post Question about CFX user fortran
  #1
New Member
 
FeiTeng
Join Date: Jan 2017
Location: Beijing,China
Posts: 12
Rep Power: 9
tengf689 is on a distinguished road
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
otm likes this.
tengf689 is offline   Reply With Quote

Old   January 8, 2017, 22:13
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   January 8, 2017, 23:02
Default
  #3
New Member
 
FeiTeng
Join Date: Jan 2017
Location: Beijing,China
Posts: 12
Rep Power: 9
tengf689 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
I wanna compute flow in a pipe using LES . As known, it is difficult to give inlet BC's . I read lots of papers and wanna try one of those methods : extract datas at middle of pipe with some modification, and give these datas to inlet at every time step.
How can I use CEL to make it ?? And do you need to view .cfx file ?
Thanks a lot
tengf689 is offline   Reply With Quote

Old   January 9, 2017, 00:16
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   January 9, 2017, 01:36
Default
  #5
New Member
 
FeiTeng
Join Date: Jan 2017
Location: Beijing,China
Posts: 12
Rep Power: 9
tengf689 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
I need to extract velocity datas at mid plane and I need to rescale these datas by using a factor ‘alpha’(alpha=0,1). So i can not use translational periodic boundaries directly.
And can I make it by using source terms?? I have not used it before.
tengf689 is offline   Reply With Quote

Old   January 9, 2017, 02:18
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   January 9, 2017, 02:53
Default
  #7
New Member
 
FeiTeng
Join Date: Jan 2017
Location: Beijing,China
Posts: 12
Rep Power: 9
tengf689 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
the result of LES is sensitive to the inlet boundary conditions, I need to give more realistic BC's . and i think ,it is good idea to extract the velocity fluctuations at mid plane, and give these fluctuation terms to the inlet .


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
tengf689 is offline   Reply With Quote

Old   January 9, 2017, 16:58
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   January 9, 2017, 21:36
Default
  #9
New Member
 
FeiTeng
Join Date: Jan 2017
Location: Beijing,China
Posts: 12
Rep Power: 9
tengf689 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
Thank you for your help ! I will keep trying ,and I hope I can make it soon . Best wishes!!!
tengf689 is offline   Reply With Quote

Reply

Tags
cfx, cfx 13.0 and fortran, user fortran


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
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


All times are GMT -4. The time now is 16:46.