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

CFX and FORTRAN

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 25, 2007, 08:51
Default CFX and FORTRAN
  #1
Bruno
Guest
 
Posts: n/a
hi

i'm simulating a dispersion of pollutants on atmosphere... and i need to use a special boundary condition on inlet of my domain...

how can i introduce an equation using fortran language in cfx????

thanks...

bruno
  Reply With Quote

Old   June 25, 2007, 09:55
Default Re: CFX and FORTRAN
  #2
opaque
Guest
 
Posts: n/a
Dear Bruno,

Would you mind giving a few more details, so those in the forum can give you a hand?

There is a lot that can be done via CEL expression before tacking the User Fortran route.. When you said "an equation", are you referring to solve a new equation, or writing an equation for your boundary condition?

Opaque

  Reply With Quote

Old   June 25, 2007, 10:11
Default Re: CFX and FORTRAN
  #3
Bruno
Guest
 
Posts: n/a
hey

what I want to do cannot be done by cel expression... I'm wanting to apply an equation for my boundary condition, where I'll have to read values from a file...

i didn't understand the steps to use a subroutine in CFX... it's confuse...

thanks by your attention

bruno
  Reply With Quote

Old   June 25, 2007, 14:50
Default Re: CFX and FORTRAN
  #4
opaque
Guest
 
Posts: n/a
Dear Bruno,

Still that does not explain why you need User Fortran..

Assuming you want to interpolate values from the file, and evaluate an alternate expression that produces values for the boundary condition, you still do not need any User Fortran in CFX.

Create an interpolation function in CFX, evaluate as many equations as you want via CEL, and input the final results into the boundary condition panel.

However, if you boundary condition is not one of the 3 typical: Value (Dirichlet), Flux (Neumann), or Flux Transfer Coefficient (Robins), then I understand why you might need use of the User Fortran route..

How complex is your boundary condition expression? Even with the profile file.

Regards,

Opaque.

  Reply With Quote

Old   June 25, 2007, 21:03
Default Re: CFX and FORTRAN
  #5
Bruno
Guest
 
Posts: n/a
One more time, thanks by your attention!!

I have an expression like this:

U(z) = Uaverage(z)+lambda*ustandarddeviation(z)+lambda*us tandarddeviation(z)*A

where A is a random function i.e. at each time step it is a number between 0 and 1.

There are two problems to use CEL expressions. First I have to read uaverage and usdv from a file and after this there isn't random function on CEL expressions

sorry if I'm not clear... it's difficult to explain on e-mail sorry by my english too!!

thanks!!

bruno

  Reply With Quote

Old   June 27, 2007, 16:48
Default Re: CFX and FORTRAN
  #6
Joey2007
Guest
 
Posts: n/a
Sounds like LES?

You can do this by programming a User CEL function which calls for example the fortran random function. This User CEL could be combined with the interpolated functions. This would keep your development effort on very low level.

However the other question is: does such boundary condition fit into the modeling strategy followed by the CFX solver (and by most commercial solvers)?
  Reply With Quote

Old   June 27, 2007, 16:59
Default Re: CFX and FORTRAN
  #7
HekLer
Guest
 
Posts: n/a
I think you only need to create a simple user CEL function which calls a fortran version of the random function.

The other two functions of z can probably be done in CEL.
  Reply With Quote

Old   June 28, 2007, 05:58
Default Re: CFX and FORTRAN
  #8
Jenny
Guest
 
Posts: n/a
Bruno, you can compile one Fortran routine and define the boundary condtions in CFX-pre via user fortran.
  Reply With Quote

Reply


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
Importing external DLL to Ansys CFX using user Fortran snpradeep CFX 2 May 16, 2014 03:52
How to set environmental variables of Intel Fortran +CFX? Christine MO CFX 0 September 23, 2011 11:11
CFX 12.0, user fortran error songxguan CFX 3 December 23, 2009 15:24
Intel Fortran and CFX 11.0 Rogerio Fernandes Brito CFX 4 November 11, 2008 00:27
a fortran problem in CFX Roy CFX 3 November 14, 2002 08:17


All times are GMT -4. The time now is 02:28.