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

how to write user fortran for turbulence model

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2009, 10:52
Default how to write user fortran for turbulence model
  #1
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
Hi everyone
for i am using ANSYS CFX 110, i donot have rotating and curvture modification compared with CFX 120. i want to add some modification to SST model in CFX 110. according to a reference paper (rotation and curve modification of SST model by Richardeson number defined in the A.Hellsten`s paper(AIAA A98-32817), it is easy to add this modification by only a new coefficient "F4",which is defined based on Richardeson number to term beta*omega^2. so i think what i should do is to add "-beta*omega^2+F4*beta*omega^2" to the source of omega eqution. I have try this modification also the new model in CFX 120 in OpenFOAM.and it seems really useful. and now i want to do this in CFX for carefully comparation for my other result from CFX.but i have almost no experience in user fortran. so would mind give me some example?

thanks

yours wayne
waynezw0618 is offline   Reply With Quote

Old   July 9, 2009, 11:51
Default
  #2
Senior Member
 
Michael P. Owen
Join Date: Mar 2009
Posts: 196
Rep Power: 17
michael_owen is on a distinguished road
I believe that you don't need FORTRAN for this. You can just use a subdomain and volumetric source for the omega equation.
michael_owen is offline   Reply With Quote

Old   July 10, 2009, 02:55
Default
  #3
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
Hi

Thanks for your reply,i have try it just now.but unfortranitaly ,i get error message in cfx-pre as:

<img src="crit.png">Non-scalar variable 'vorticity' referenced in parameter 'Source' in object '/FLOW/DOMAINitzDaily/SUBDOMAIN:Subdomain 1/SOURCES/EQUATION SOURCE:tef'.

<img src="crit.png">Parameter 'Source' in object '/FLOW/DOMAINitzDaily/SUBDOMAIN:Subdomain 1/SOURCES/EQUATION SOURCE:tef' has been assigned an expression that references the following unavailable variables: sstbf1


Non-scalars are only allowed as arguments to integrated quantity functions.


and all this errors is Maroon with red cross before, but the solver could still run. i am not sure if this modification is applied or not..how can do?

Quote:
Originally Posted by michael_owen View Post
I believe that you don't need FORTRAN for this. You can just use a subdomain and volumetric source for the omega equation.

Last edited by waynezw0618; July 10, 2009 at 12:13.
waynezw0618 is offline   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
Comparison between C/C++ and Fortran? rick Main CFD Forum 45 September 6, 2011 01:52
user routine, user funcion, or fortran compile effect on the memroy? princeps11 CFX 1 May 13, 2009 19:37
Double precision & User Fortran Martijn CFX 3 April 4, 2009 06:43
user fortran: boundary conditions-transient simula Vanessa CFX 0 October 20, 2005 10:23
User FORTRAN: USER_GET_MESH_DATA Yuko CFX 0 October 28, 2004 05:08


All times are GMT -4. The time now is 15:06.