CFX and FORTRAN

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

 June 25, 2007, 08:51 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

 June 25, 2007, 09:55 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

 June 25, 2007, 10:11 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

 June 25, 2007, 14:50 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.

 June 25, 2007, 21:03 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

 June 27, 2007, 16:48 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)?

 June 27, 2007, 16:59 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.

 June 28, 2007, 05:58 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.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post snpradeep CFX 2 May 16, 2014 03:52 Christine MO CFX 0 September 23, 2011 11:11 songxguan CFX 3 December 23, 2009 16:24 Rogerio Fernandes Brito CFX 4 November 11, 2008 01:27 Roy CFX 3 November 14, 2002 09:17

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