CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Mach Number for post processing in flunet is not available..

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2020, 00:48
Default Mach Number for post processing in flunet is not available..
  #1
New Member
 
Rahul
Join Date: Jun 2019
Location: Pune
Posts: 23
Rep Power: 7
rahulmule797@gmail.com is on a distinguished road
Hello everyone,
i'm doing similation of SF6 circuit braker (Simplified nozzle geometry). i want to know the mach number along length of nozzle. I have varioation of Sonic velocity with respect to temp. with me. how to do it?

please help me out to resolve the issue....
i've tried using
1) Custom field function...
Mach Number= |V|/sqrt(1.095*146*temperature) /* Sonic velocity = Sqrt(gamma*R*temp.) */
but it overpredicts mach number value
2) write udf for sonic velocity using macro DEFINE_ADJUST(SONIC_VELOCITY,d) and assigned memory to it..
and then defined mach number in Custom field function as
Mach Number = |V|/ udm-17
this results in complete disaster.. it gives mach numer 7000-8000...
3)write udf for sonic velocity using macro DEFINE_EXECUTE_AT_END(SONIC_VELOCITY,d) and assigned memory to it..
and then defined mach number in UDF itself as
Mach_number = C_V(c,t)/C_UDMI(c,t,Ma)...
but still it is not working..
rahulmule797@gmail.com is offline   Reply With Quote

Old   March 6, 2020, 03:52
Default Mach Number
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
For post-processing within Fluent, Mach number is directly available under Velocity. Is it but showing up for you or do you want to define your own function for some other reason?
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   March 6, 2020, 03:57
Default
  #3
New Member
 
Rahul
Join Date: Jun 2019
Location: Pune
Posts: 23
Rep Power: 7
rahulmule797@gmail.com is on a distinguished road
mach number is not available under velocity...
it is available when i select air as material, but i'm using user defined SF6 material
rahulmule797@gmail.com is offline   Reply With Quote

Old   March 6, 2020, 04:25
Default Speed of Sound
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
It is not about air but about density. Which model are you using for density of your material?
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   March 6, 2020, 05:00
Default
  #5
New Member
 
Rahul
Join Date: Jun 2019
Location: Pune
Posts: 23
Rep Power: 7
rahulmule797@gmail.com is on a distinguished road
Quote:
Originally Posted by vinerm View Post
It is not about air but about density. Which model are you using for density of your material?
the density and other porperties are provided using UDF..
properties are varying with temperature and pressure..
temperature range 300K - 35000k
pressure range 1 bar- 10 bar

regards,
Rahul
rahulmule797@gmail.com is offline   Reply With Quote

Old   March 6, 2020, 05:26
Default Speed of Sound
  #6
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Yes, with UDF applied to density, Mach number is not available since Sound of Speed may or may not have been provided via UDF.

If all the properties are varying, then you have to use those properties to define Mach number, i.e., \gamma as well as R have to be defined in terms of C_p and C_v. Whether you do it in CFF or UDF, the property variations have to be taken into account.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   March 6, 2020, 05:32
Default
  #7
New Member
 
Rahul
Join Date: Jun 2019
Location: Pune
Posts: 23
Rep Power: 7
rahulmule797@gmail.com is on a distinguished road
Quote:
Originally Posted by rahulmule797@gmail.com View Post
Hello everyone,
i'm doing similation of SF6 circuit braker (Simplified nozzle geometry). i want to know the mach number along length of nozzle. I have varioation of Sonic velocity with respect to temp. with me. how to do it?

please help me out to resolve the issue....
i've tried using
1) Custom field function...
Mach Number= |V|/sqrt(1.095*146*temperature) /* Sonic velocity = Sqrt(gamma*R*temp.) */
but it overpredicts mach number value
2) write udf for sonic velocity using macro DEFINE_ADJUST(SONIC_VELOCITY,d) and assigned memory to it..
and then defined mach number in Custom field function as
Mach Number = |V|/ udm-17
this results in complete disaster.. it gives mach numer 7000-8000...
3)write udf for sonic velocity using macro DEFINE_EXECUTE_AT_END(SONIC_VELOCITY,d) and assigned memory to it..
and then defined mach number in UDF itself as
Mach_number = C_V(c,t)/C_UDMI(c,t,Ma)...
but still it is not working..
i have sonic velocity data as function of presure and temperature...
and tried as ststed in post...
rahulmule797@gmail.com is offline   Reply With Quote

Old   March 6, 2020, 05:41
Default Udf
  #8
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
1. In the CFF, the properties you have used appear to be constant, at least, from the post

2. As far as UDF is concerned, I cannot comment until I look at it. DEFINE_ADJUST or DEFINE_EXECUTE_AT_END won't make a difference. And if you want to post process only the final solution, then use DEFINE_ON_DEMAND. But for the rest of the UDF, I need to have a look before I can say anthing.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm 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
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 05:13
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 10:01
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 11:37


All times are GMT -4. The time now is 22:25.