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

User Routine, Schiller Naumann

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2021, 06:00
Default User Routine, Schiller Naumann
  #1
New Member
 
Join Date: Sep 2019
Posts: 14
Rep Power: 6
Mohamed Abohelwa is on a distinguished road
Hi,

I want to modify the equation of the (Schiller Naumann) drag model to include some terms and make it valid for nonspherical particles. Is there anyway to do that without using Fortran and User Routines ?
If no, are there any tutorials explaining how to use User Routines ?
Mohamed Abohelwa is offline   Reply With Quote

Old   November 14, 2021, 16:55
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,729
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Set the Drag Force to "Particle Transport Drag Coefficient" and then you can define your own function for the drag coefficient. You can define this drag function by user fortran or CEL.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   November 15, 2021, 03:09
Default
  #3
New Member
 
Join Date: Sep 2019
Posts: 14
Rep Power: 6
Mohamed Abohelwa is on a distinguished road
Hi Glenn,

When I did that, I got this error:
( Parameter 'Drag Coefficient' in object '/FLOW:Flow Analysis 1/DOMAIN:Inlet_Rotor_Outlet_Grob/FLUID PAIR:Fluid 1 | Kalkpartikel/MOMENTUM TRANSFER/DRAG FORCE/DRAG COEFFICIENT' is not allowed to be assigned an expression value that depends on variables. It must be assigned a numeric value, or an expression that resolves to a constant value.)

While I don't want to set the drag coefficient as a constant value but it should be variable depending on other parameters such as the Reynolds number which is not constant in the whole domain but it varies also depending on the flow and particle velocities.
Mohamed Abohelwa is offline   Reply With Quote

Old   November 15, 2021, 03:14
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,729
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
That is disappointing. Limiting it to constant variables is very unfortunate.

Oh well, then your only option is the existing models or user fortran.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   November 15, 2021, 03:22
Default
  #5
New Member
 
Join Date: Sep 2019
Posts: 14
Rep Power: 6
Mohamed Abohelwa is on a distinguished road
Do you know any tutorials for using User Fortran ?

I have read the CFX documentation, but it is not clear to me how to compile the (.F) file for CFX.
Mohamed Abohelwa is offline   Reply With Quote

Old   November 15, 2021, 03:32
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,729
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You need to make sure you have the supported compiler for your version of CFX. The documentation covers all that and a few simple tutorial examples.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks 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
calculate particle temperature gradient with user routine amd18 CFX 1 April 3, 2017 11:32
User fortran to input/output file in a parallel run doublestrong CFX 5 March 31, 2017 08:15
What is the diameter of droplets in Schiller and Naumann model for fluid-fluid drag? betelnut OpenFOAM 0 November 4, 2010 21:33
CFX 10 User Routine NOT in Fortran Andre CFX 14 August 8, 2006 23:03
SOURCE TERM USER ROUTINE Mario Siemens 2 April 26, 2001 12:15


All times are GMT -4. The time now is 01:17.