@@papahabibi1402 Hi, you can send me an email (najafi.fme@gmail.com). I can not tell you in the comment. We can have an online meeting and I will explain it to you.
Hi, after I set it up like this it doesn't show the temperature gradient and gives me this error message, do you know how to fix it?Info: Expert option for not freeing temporary solver memory is incompatible with adaption in parallel.
Hi Mr. Hasan, thank you for this video. I got one question; can I use custom field function to calculate entropy due to heat transfer and friction? If so, may I know how to do so?
Hi. Yes, it is possible. You can see the equations of entropy generation in the below article. After creating the equation in Fluent, you can calculate the volume integral of entropy generation in your domain. doi.org/10.1007/s00231-019-02615-z
For normal derivative, you should use the UDF code. I have not calculated the normal derivative but you can see some samples of UDF code about the normal derivative in the UDF Manual of ANSYS Fluent and CFD Online website.
Thank you sir, Is it possible to orient me on the procedure of calculating the entropy due to heat transfer (sh) and the entropy due to friction (sf), by what fluent calculates us as the total entropy ( st). Please help me. Thank you
Hi, there is a Macro called DEFINE_INIT (initializes variables) in UDF that the Dialog Box of this Macro can be activated in User-Defined Function Hooks. You can see the definition of this UDF in the ANSYS FLUENT UDF Manual.
Hi, first you should create a custom field function with your definition (dT/dy....) then calculate the value of your function from the wall, which the location is y=0. To report the value from that location, you can create a line or point by Fluent on the surface (wall).
I have not worked on rotating impeller. You can search and find an article that explains the equation of entropy production in a rotating impeller. When you find the equation. You can transfer the equation as a UDF code or as a custom field function. However, I think, the equation should be general for all applications, which is explained in the Bejan book. When you find the equation, I think you can calculate the equation using a volume integral in reporting section of Fluent software. You can see the equation of entropy generation in the below link. This is a published article by me. link.springer.com/article/10.1007/s00231-019-02615-z
Sorry, for not getting back to you sooner. You can report the Time-Averaged Wall Shear Stress as below: 1) For steady simulation: Go to Report> Surface Integrals> Report type (Area-Weighted Average)> Field Variable (Wall Fluxes...)> select Wall Shear Stress> then Chose the boundary that you want to report the Time-Averaged Wall Shear Stress> Compute. 2) For translate simulation: You can use UDM Macros for saving you data every time step size and calculate the average time with other software, or use the Tecplot 360 CFD post-processing software, which you can import your case and data to it.
For calculating the mean of parameters, I think that you can write your custom field function then calculate its as the Area-weighted Average (for example) in reports section of Fluent.
Sorry, I do not know how to calculate dT-dt. I suggest you get the temperature from a specific point and then provide a function by overfitting using Exel then calculate the derivative of it. Also, you can use numerical methods for calculating a derivative of some data.
Your welcome. We can't calculate the second derivatives in the custom field function calculator of the ANSYS FLUENT software (maybe I don’t know), but it will be calculated with the UDF. I think these links (in below) may help you. *www.cfd-online.com/Forums/fluent-udf/37146-how-build-second-derivative-udf.html *www.cfd-online.com/Forums/fluent-udf/137277-second-derivation-temperature.html
@@akamcae Thank you... I wrote a UDF and It seems working: :-) # include "udf.h" DEFINE_ON_DEMAND(store_gradient) { Domain *domain; cell_t c; Thread *t;
domain=Get_Domain(1);
thread_loop_c (t,domain) { begin_c_loop (c,t) {
C_UDSI(c,t,0) = C_T_G(c,t)[1]; C_UDMI(c,t,0) = C_UDSI_G(c,t,0)[1]; } end_c_loop (c,t) } } Ps., For better refinement in gradients, one also can use the reconstruction component of gradients of any variable...
Thank you sir, but when I try to calculate average value of dT/d(x,y,z) for particular part of fluid domain (e.g. air domain) from Reports (Volume Integrals), zero value occurs and without units (instead K m-1). Do you have any advice?
Hi, In this method, the value illustrates without units because you make a custom field function which it has not a defined unit in Fluent. To unravel the problem of zero value, you should calculate your run (your all equations or just your energy equation) before you calculate the average value of dT/d(x,y,z) for a particular part of the fluid domain. One iteration for calculating the equations is enough after you read your Case and Data in Fluent. If you need more information regarding this issue, please do not hesitate to reply to me.
@@akamcae You are right. I first ran a calculation and after convergence is achieved, I followed your steps and didn't rerun calculation. Thank you and best regards!
@@josipbatista3570 Your welcome. In addition, whenever you want to calculate your parameter with the custom field function in your previous run, do the below steps and save your time. 1- Read your Case and Data files. 2- Go to Solution> Solution Controls> Equations 3- Active the energy equation and inactive others equations 4- Press OK 5- Run your solver for one iteration 6- Calculate your parameter with the custom field function Good luck
You can see the equations of entropy generation in the below article. After creating the equation in Fluent in the Custom Field Function Calculator dialog box, you can calculate the volume integral of entropy generation in your domain. doi.org/10.1007/s00231-019-02615-z
Hi, You should make a cross-section in your domain and then use Mass-Weighted Average to calculate the temperature on the cross-section surface. That's where you will get the bulk temperature in a specific cross-section. For wall temperature, you need to use Area-Weighted Average over the line or surface of the geometry. Please subscribe to my channel, I will provide a video about calculating these two parameters within the next week.
@@ammarlaichi8474 Hi, you can find the video regarding calculating the Nusselt number in the below link. Thanks ruclips.net/video/2StpgKD2ljU/видео.htmlsi=4lFfz-Vo7ux_HMUh
Hi, after I set it up like this it doesn't show the temperature gradient and gives me this error message, do you know how to fix it?Info: Expert option for not freeing temporary solver memory is incompatible with adaption in parallel.
Hi, I guess you have one of the following problems: You may be using the student version, you need to have installed Visual Studio, or you may also need to change the mpi setup in the launch window in Fluent. The problem seems to appear from parallel processing.
@@sss-bc6dz Please try one of the following steps: 1) First read your case and data, run one interaction, change the setup like the video here, and then run your simulation one iteration more before getting your data. 2) if your simulation is steady and you want to get data at the end of your simulation, you can read the case and data with a single process instead of parallel processing. Just be aware that before calculating the data by custom field function calculator, just do one interaction, otherwise, you will get a zero value. 3) try to install a newer version of Visual Studio. 4) if none of the above solutions worked, you need to create a UDF file, You can use DEFINE_ON_DEMAND. Good luck
Thanks, was looking for this for ages!
You're welcome!
Please I need how we calculate nusselt average pleasssse
@@papahabibi1402 Hi, you can send me an email (najafi.fme@gmail.com). I can not tell you in the comment. We can have an online meeting and I will explain it to you.
Hi, after I set it up like this it doesn't show the temperature gradient and gives me this error message, do you know how to fix it?Info: Expert option for not freeing temporary solver memory is incompatible with adaption in parallel.
Thank you, it was of great help
You're welcome!
Hi Mr. Hasan, thank you for this video. I got one question; can I use custom field function to calculate entropy due to heat transfer and friction? If so, may I know how to do so?
Hi. Yes, it is possible. You can see the equations of entropy generation in the below article. After creating the equation in Fluent, you can calculate the volume integral of entropy generation in your domain.
doi.org/10.1007/s00231-019-02615-z
How can I calculate the entropy production rate by heat conduction and direct dissipation in fluent
Hi, please send an email to me. I will send you a file. My email address: najafi.fme@gmail.com
this gives dT/dx or dy or dz, however, if we want to obtain dT/dn , then how can we obtain that?
For normal derivative, you should use the UDF code. I have not calculated the normal derivative but you can see some samples of UDF code about the normal derivative in the UDF Manual of ANSYS Fluent and CFD Online website.
Thank you sir,
Is it possible to orient me on the procedure of calculating the entropy due to heat transfer (sh) and the entropy due to friction (sf), by what fluent calculates us as the total entropy ( st). Please help me. Thank you
Hi, please send me an email to send an article for you.
My email: najafi.fme@gmail.com
Hi Mr Najafi, How we can define new Field Variable At Initialize - Patch Window Setting ?
Hi, there is a Macro called DEFINE_INIT (initializes variables) in UDF that the Dialog Box of this Macro can be activated in User-Defined Function
Hooks. You can see the definition of this UDF in the ANSYS FLUENT UDF Manual.
hello sir i want to find nusselt number so for that i need to calculate dt/dy at y=0 so how can i find the same ?
Hi, first you should create a custom field function with your definition (dT/dy....) then calculate the value of your function from the wall, which the location is y=0. To report the value from that location, you can create a line or point by Fluent on the surface (wall).
@@akamcae I want to find dT/dY not dT-dY
@@maniksinghsambyal550 It is dT/dY but when you use the Fluent, it shows like dT-dY.
who to calculate the Production of Entropy of a rotating impeller?
I have not worked on rotating impeller. You can search and find an article that explains the equation of entropy production in a rotating impeller. When you find the equation. You can transfer the equation as a UDF code or as a custom field function. However, I think, the equation should be general for all applications, which is explained in the Bejan book. When you find the equation, I think you can calculate the equation using a volume integral in reporting section of Fluent software. You can see the equation of entropy generation in the below link. This is a published article by me.
link.springer.com/article/10.1007/s00231-019-02615-z
nice video. how can i implement the Time-Averaged Wall Shear Stress (TAWSS).
Sorry, for not getting back to you sooner.
You can report the Time-Averaged Wall Shear Stress as below:
1) For steady simulation:
Go to Report> Surface Integrals> Report type (Area-Weighted Average)> Field Variable (Wall Fluxes...)> select Wall Shear Stress> then Chose the boundary that you want to report the Time-Averaged Wall Shear Stress> Compute.
2) For translate simulation:
You can use UDM Macros for saving you data every time step size and calculate the average time with other software, or use the Tecplot 360 CFD post-processing software, which you can import your case and data to it.
How to write custom field function for mean deviation and forces for sloshing problem
For calculating the mean of parameters, I think that you can write your custom field function then calculate its as the Area-weighted Average (for example) in reports section of Fluent.
HELLO, How to fine derevitive of the temperature with respect to time, dT-dt
Sorry, I do not know how to calculate dT-dt. I suggest you get the temperature from a specific point and then provide a function by overfitting using Exel then calculate the derivative of it. Also, you can use numerical methods for calculating a derivative of some data.
Thank you Man. It is quite usefull. Would you know how we can calculate the second derivatives?
Your welcome.
We can't calculate the second derivatives in the custom field function calculator of the ANSYS FLUENT software (maybe I don’t know), but it will be calculated with the UDF. I think these links (in below) may help you.
*www.cfd-online.com/Forums/fluent-udf/37146-how-build-second-derivative-udf.html
*www.cfd-online.com/Forums/fluent-udf/137277-second-derivation-temperature.html
@@akamcae Thank you... I wrote a UDF and It seems working: :-)
# include "udf.h"
DEFINE_ON_DEMAND(store_gradient)
{
Domain *domain;
cell_t c;
Thread *t;
domain=Get_Domain(1);
thread_loop_c (t,domain)
{
begin_c_loop (c,t)
{
C_UDSI(c,t,0) = C_T_G(c,t)[1];
C_UDMI(c,t,0) = C_UDSI_G(c,t,0)[1];
}
end_c_loop (c,t)
}
}
Ps., For better refinement in gradients, one also can use the reconstruction component of gradients of any variable...
@@Roilbb gradient is a vector. How can you store it in a scaler?
@@waqasmuneer7951 It is magnitude which is stored in UDS. You can also store the components of a vector in UDS as well.
@@Roilbb It is the vector that has been stored in scaler and it is a magnitude of the sclalar which has been stored in UDM. Is your code working fine?
Thank you sir, but when I try to calculate average value of dT/d(x,y,z) for particular part of fluid domain (e.g. air domain) from Reports (Volume Integrals), zero value occurs and without units (instead K m-1). Do you have any advice?
Hi,
In this method, the value illustrates without units because you make a custom field function which it has not a defined unit in Fluent. To unravel the problem of zero value, you should calculate your run (your all equations or just your energy equation) before you calculate the average value of dT/d(x,y,z) for a particular part of the fluid domain. One iteration for calculating the equations is enough after you read your Case and Data in Fluent.
If you need more information regarding this issue, please do not hesitate to reply to me.
@@akamcae You are right. I first ran a calculation and after convergence is achieved, I followed your steps and didn't rerun calculation. Thank you and best regards!
@@josipbatista3570 Your welcome. In addition, whenever you want to calculate your parameter with the custom field function in your previous run, do the below steps and save your time.
1- Read your Case and Data files.
2- Go to Solution> Solution Controls> Equations
3- Active the energy equation and inactive others equations
4- Press OK
5- Run your solver for one iteration
6- Calculate your parameter with the custom field function
Good luck
thank you sir , please do you know how to access to the derivative of species mass fraction , thanks alot
Unfortunately, I don't know, but it might be possible with the UDF definition in the Ansys Fluent.
@@akamcae thanks a lot sir please do you have any UDF documents support ! i really appreciate ur help tnx
@@newyorkbrooklyn987 No, I am sorry.
Please help me, How to calculate entropy in Ansys Fluent?
You can see the equations of entropy generation in the below article. After creating the equation in Fluent in the Custom Field Function Calculator dialog box, you can calculate the volume integral of entropy generation in your domain.
doi.org/10.1007/s00231-019-02615-z
HELLO, HOW TO CALCULATE WALL AND BULK TEMPERATURE?
Hi, You should make a cross-section in your domain and then use Mass-Weighted Average to calculate the temperature on the cross-section surface. That's where you will get the bulk temperature in a specific cross-section. For wall temperature, you need to use Area-Weighted Average over the line or surface of the geometry. Please subscribe to my channel, I will provide a video about calculating these two parameters within the next week.
@@akamcae Thank you very much for your information.
@@ammarlaichi8474 Hi, you can find the video regarding calculating the Nusselt number in the below link. Thanks
ruclips.net/video/2StpgKD2ljU/видео.htmlsi=4lFfz-Vo7ux_HMUh
Hi, after I set it up like this it doesn't show the temperature gradient and gives me this error message, do you know how to fix it?Info: Expert option for not freeing temporary solver memory is incompatible with adaption in parallel.
Hi, I guess you have one of the following problems: You may be using the student version, you need to have installed Visual Studio, or you may also need to change the mpi setup in the launch window in Fluent. The problem seems to appear from parallel processing.
@@akamcae you are right...... how can i fix it ? udf?
@@sss-bc6dz Please try one of the following steps:
1) First read your case and data, run one interaction, change the setup like the video here, and then run your simulation one iteration more before getting your data.
2) if your simulation is steady and you want to get data at the end of your simulation, you can read the case and data with a single process instead of parallel processing. Just be aware that before calculating the data by custom field function calculator, just do one interaction, otherwise, you will get a zero value.
3) try to install a newer version of Visual Studio.
4) if none of the above solutions worked, you need to create a UDF file, You can use DEFINE_ON_DEMAND.
Good luck
@@akamcae thank you for your reply