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

CEL into user CEL

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2012, 11:46
Default CEL into user CEL
  #1
Member
 
Jan Potac
Join Date: Aug 2009
Posts: 30
Rep Power: 16
potac is on a distinguished road
I have been trying to learn user CEL on simple examples. I am beginner to Fortran and I cannot figure out how to load a CEL function and predefined constants e.g. gravity into my user CEL function, if possible. Can someone give me some hints to follow, please? Thank you.
potac is offline   Reply With Quote

Old   February 13, 2012, 16:28
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,692
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I think you need to do some tutorials:
1) CEL is the expression language so most mathematical functions can be done without fortran.
2) CCL is the command language which tells CFX what to do. CCL is where you set up gravity, but this is not visible to most people. Most people just set it up in CFX-Pre where you can do it through a GUI.
3) Fortran is rarely required in CFX.

I think you have these three things confused. Do the tutorials to understand them better.
ghorrocks is offline   Reply With Quote

Old   February 14, 2012, 02:38
Default
  #3
Member
 
Jan Potac
Join Date: Aug 2009
Posts: 30
Rep Power: 16
potac is on a distinguished road
Thanks Glenn for reply. I have got some tutorials and course slides about CEL, user CEL and CCL from our Ansys provider. I do not need to use Fortran right now. Use of CEL is enough for me. I have been just interested to get little bit of knowledge about Fortran and CFX in general.
For instance, I have tried to calculate some inlet velocity profile. Now, I am thinking about having some profile function parameters defined using CEL in CFX-Pre for easier control and called into the Fortran subroutine when starting the simulation to create the inlet profile. Also, in CFX the gravity constant is predefined. If my inlet function includes gravity term do I have to specify gravity value in the subroutine or can call it from somewhere? Thank you.
potac is offline   Reply With Quote

Old   February 14, 2012, 09:55
Default
  #4
Senior Member
 
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21
brunoc is on a distinguished road
Hi potac,

As Glenn said, you most likely don't need to use Fortran on your setup. On your example, if you know the function that defines your inlet velocity profile you can just write it using CEL Expressions (CFX has a built in constant for gravity, 'g', and it also has a bunch of other constants). On the other hand if this same profile comes from data written to a file you can read it using CFX's Boundary Condition Profile ('Tools > Initialize Profile Data').

Think of it this way: UserCEL in CFX is not that straightforward because for most of the stuff you simply don't need it, as it can be modeled some other way using features from the GUI.

If you tell us exactly what you want to do maybe we can help you with it.

Cheers
brunoc is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 CEL Function and CFD Post chastain CFX 4 September 24, 2013 13:58
How to use parellel mode with user cel function? frank CFX 3 November 15, 2008 14:50
CFX arc-modeling, User Fortran, CEL.... Bloshchitsyn Vladimir CFX 2 October 15, 2007 09:29
CFX arc-modeling, User Fortran, CEL.... Bloshchitsyn Vladimir CFX 0 October 15, 2007 06:39
CFX arc-modeling, User Fortran, CEL.... Bloshchitsyn Vladimir CFX 0 October 15, 2007 06:17


All times are GMT -4. The time now is 10:14.