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

How to get data of mass fraction in UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2020, 12:05
Default Command
  #61
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
Are you using double quotes around the command? The command needs to have bracket around it but no double quotes.

Secondly, contours of species mass fraction will always exist if species transport is enabled. What I suggested you to check is if the species mass fraction gradient exist or not. These will be available only after issuing the command. Furthermore, which Fluent version are you using? If the version is older than 13.0, then you will not be able to use this command.
__________________
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 9, 2020, 12:52
Default
  #62
Senior Member
 
mahdi rostami
Join Date: Jan 2020
Posts: 155
Rep Power: 6
mahdi-united is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Are you using double quotes around the command? The command needs to have bracket around it but no double quotes.

Secondly, contours of species mass fraction will always exist if species transport is enabled. What I suggested you to check is if the species mass fraction gradient exist or not. These will be available only after issuing the command. Furthermore, which Fluent version are you using? If the version is older than 13.0, then you will not be able to use this command.
no this message exactly wrote by me:

(rpsetvar 'species/save-gradients? #t)


and contour of species mass fraction gradients not exist!!!
also contour of vapor pressure not exist too but contour of volume fraction, temperature , velocity, density, pressure gradients exist
my version in 19.5
mahdi-united is offline   Reply With Quote

Old   March 9, 2020, 13:38
Default rpsetvar
  #63
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
If Fluent is not accepting the command to save species gradients then there is problem with the case setup. Species gradients can be extracted without this command as well, using the standard UDF commands as you were doing earlier, however, the command does the same thing. If the command is not working, there is some issue with your case setup. It could either be related to multiphase or species transport setup.
__________________
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 9, 2020, 14:00
Default
  #64
Senior Member
 
mahdi rostami
Join Date: Jan 2020
Posts: 155
Rep Power: 6
mahdi-united is on a distinguished road
Quote:
Originally Posted by vinerm View Post
If Fluent is not accepting the command to save species gradients then there is problem with the case setup. Species gradients can be extracted without this command as well, using the standard UDF commands as you were doing earlier, however, the command does the same thing. If the command is not working, there is some issue with your case setup. It could either be related to multiphase or species transport setup.
yes your right
i investigate it and say you
thank you very mich
mahdi-united is offline   Reply With Quote

Old   March 10, 2020, 09:39
Default
  #65
Senior Member
 
mahdi rostami
Join Date: Jan 2020
Posts: 155
Rep Power: 6
mahdi-united is on a distinguished road
Quote:
Originally Posted by vinerm View Post
If Fluent is not accepting the command to save species gradients then there is problem with the case setup. Species gradients can be extracted without this command as well, using the standard UDF commands as you were doing earlier, however, the command does the same thing. If the command is not working, there is some issue with your case setup. It could either be related to multiphase or species transport setup.
please send your email for me
mahdi1372rs@gmail.com
mahdi-united is offline   Reply With Quote

Old   August 4, 2020, 03:07
Default
  #66
New Member
 
Debojit Sharma
Join Date: Aug 2020
Location: India
Posts: 10
Rep Power: 6
scorpian is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Look at the source listing in your installation

./ansys_inc/vXXX/fluent/fluentXX.Y.Z/src
How to calculate the gradient of species mole fraction in fluent?
scorpian is offline   Reply With Quote

Old   August 5, 2020, 02:05
Default How to calculate gradient of species mole fraction in fluent?
  #67
New Member
 
Debojit Sharma
Join Date: Aug 2020
Location: India
Posts: 10
Rep Power: 6
scorpian is on a distinguished road
Quote:
Originally Posted by vinerm View Post
T_derivatives function is declared in pbns/sg.h, however, I do not think that it is relevant for you. You need to fetch gradients of mass fractions of species. That is accessible via C_YI_G or as stated earlier, using SV_Y_G, 0.

What error do you get if you use either C_YI_G or SV_Y_G? I would recommend the former since that is an easy wrapper for users.
Hello sir,

I was trying to get calculate the gradients of species mass and mole fraction in fluent. I could find the command for gradient of species mass fraction from your chat in this platform.

Could you help me how to get the gradient of species mole fraction in ANSYS-FLUENT?

Thanking you in anticipation,

With warm wishes,
Debojit Sharma
scorpian is offline   Reply With Quote

Reply

Tags
macros, segmentation error, udf


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
mass fraction of species Lilly FLUENT 5 March 13, 2022 18:52
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 08:31
Accessing the species mass fraction for particles data in UDF mac_09 FLUENT 17 August 9, 2017 21:15
Define mass flow profile with regards to species mass fraction danS Fluent UDF and Scheme Programming 0 June 20, 2017 07:21
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32


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