CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   how to write user fortran for turbulence model (http://www.cfd-online.com/Forums/cfx/66231-how-write-user-fortran-turbulence-model.html)

waynezw0618 July 9, 2009 09:52

how to write user fortran for turbulence model
 
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

michael_owen July 9, 2009 10:51

I believe that you don't need FORTRAN for this. You can just use a subdomain and volumetric source for the omega equation.

waynezw0618 July 10, 2009 01:55

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/DOMAIN:pitzDaily/SUBDOMAIN:Subdomain 1/SOURCES/EQUATION SOURCE:tef'.

<img src="crit.png">Parameter 'Source' in object '/FLOW/DOMAIN:pitzDaily/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 (Post 222115)
I believe that you don't need FORTRAN for this. You can just use a subdomain and volumetric source for the omega equation.



All times are GMT -4. The time now is 09:19.