I am running a 2D transient simulation(VOF Fluent) in which vapor bubbles are generated at the bottom surface of a rectangular domain that is initially full of water with heat flux given at the bottom wall. I was trying to patch a single vapor bubble by creating a hemispherical region. I can see my volume fraction contour with the bubble after patching a hemispherical region at the bottom of the liquid. The simulation is also running perfectly when I click on "Run Calculation". When I do this same bubble patch operation through a DEFINE_INIT UDF, I can see the bubble getting patched in the vapor phase contour, but the calculation is not running. It is giving the following error in the 1st iteration itself. Divergence detected in AMG solver: vof-1 Divergence detected in AMG solver: x-momentum Divergence detected in AMG solver: y-momentum Divergence detected in AMG solver: pressure correction Divergence detected in AMG solver: pressure correction Divergence detected in AMG solver: temperature UDF code #include "udf.h" DEFINE_INIT (init2, domain1) { Message("solution initialised"); cell_t cell; Thread *cell_thread; Domain *subdomain;
int phase_domain_index; //Initialisation of heater layer sub_domain_loop(subdomain, domain1, phase_domain_index) { if(DOMAIN_ID(subdomain) == 2) { thread_loop_c (cell_thread,subdomain) { begin_c_loop_all (cell,cell_thread) { real arr[ND_ND]; C_CENTROID(arr,cell,cell_thread); if (sqrt(ND_SUM(pow(arr[0],2),pow(arr[1],2), pow(arr[2],2)))
Hello and thank you for your comment. Unfortunately, this is a very involved scenario. If you are interested in any of our engineering services, please email info@simutechgroup.com. You can also check out SimuTech Skills Center, a training portal that contains training material and tips and tricks videos that have been created by SimuTech engineers: skillscenter.simutechgroup.com/
Hi, feel free to drop us a note at info@simutechgroup.com if you're interested in our consulting services and we'd be more than happy to help! Otherwise there is the Ansys student community to find posts/articles: studentcommunity.ansys.com/
Hi Salim, feel free to drop us a note at info@simutechgroup.com if you're interested in our consulting services and we'd be more than happy to help! Otherwise there is the ansys student community to find posts/articles: studentcommunity.ansys.com/
When I try to load UDF in fluent solver. The error messenge was showing that UDF library you are trying to load(libudf) is not compiled for parallel use on current platform (win64). The system cannot find the path specified.please help!!
Thanks a lot for this valuable information.. I'd like anyone to help me with writing the UDF code of the transient velocity of the profile of respiratory velocity for normal breathing- inhalation & exhalation for 4.8 s
Hi Persis, feel free to drop us a note at info@simutechgroup.com if you're interested in our consulting services and we'd be more than happy to help! Otherwise there is the ansys student community to find posts/articles: studentcommunity.ansys.com/
I am running a 2D transient simulation(VOF Fluent) in which vapor bubbles are generated at the bottom surface of a rectangular domain that is initially full of water with heat flux given at the bottom wall. I was trying to patch a single vapor bubble by creating a hemispherical region. I can see my volume fraction contour with the bubble after patching a hemispherical region at the bottom of the liquid. The simulation is also running perfectly when I click on "Run Calculation".
When I do this same bubble patch operation through a DEFINE_INIT UDF, I can see the bubble getting patched in the vapor phase contour, but the calculation is not running. It is giving the following error in the 1st iteration itself.
Divergence detected in AMG solver: vof-1
Divergence detected in AMG solver: x-momentum
Divergence detected in AMG solver: y-momentum
Divergence detected in AMG solver: pressure correction
Divergence detected in AMG solver: pressure correction
Divergence detected in AMG solver: temperature
UDF code
#include "udf.h"
DEFINE_INIT (init2, domain1)
{
Message("solution initialised");
cell_t cell;
Thread *cell_thread;
Domain *subdomain;
int phase_domain_index;
//Initialisation of heater layer
sub_domain_loop(subdomain, domain1, phase_domain_index)
{
if(DOMAIN_ID(subdomain) == 2)
{
thread_loop_c (cell_thread,subdomain)
{
begin_c_loop_all (cell,cell_thread)
{
real arr[ND_ND];
C_CENTROID(arr,cell,cell_thread);
if (sqrt(ND_SUM(pow(arr[0],2),pow(arr[1],2), pow(arr[2],2)))
Hello and thank you for your comment. Unfortunately, this is a very involved scenario. If you are interested in any of our engineering services, please email info@simutechgroup.com. You can also check out SimuTech Skills Center, a training portal that contains training material and tips and tricks videos that have been created by SimuTech engineers: skillscenter.simutechgroup.com/
thank u so much sir.. please give one for 3 D also please please
Hi, feel free to drop us a note at info@simutechgroup.com if you're interested in our consulting services and we'd be more than happy to help! Otherwise there is the Ansys student community to find posts/articles: studentcommunity.ansys.com/
Thank you verry much of this information.
Very concise tutorial, thank you!
Glad it was helpful!
thank you very much, but I have a problem .how can I initialize a solid temperature with UDF?
Hi Salim, feel free to drop us a note at info@simutechgroup.com if you're interested in our consulting services and we'd be more than happy to help! Otherwise there is the ansys student community to find posts/articles: studentcommunity.ansys.com/
Amazing tutorial, thank you!
When I try to load UDF in fluent solver. The error messenge was showing that UDF library you are trying to load(libudf) is not compiled for parallel use on current platform (win64). The system cannot find the path specified.please help!!
Me too
@@khairiarrif3097 I installed visual studio 2012 . After that I haven't faced the problem
@@saicharannathdubba3589 thank you friend ...can you give me the site
@@khairiarrif3097 I forgot the website from where I downloaded it. But I can send you through Google drive. If possible send me your email id
@@saicharannathdubba3589 arrifkhairi@gmail.com
Loved it
Thanks a lot for this valuable information.. I'd like anyone to help me with writing the UDF code of the transient velocity of the profile of respiratory velocity for normal breathing- inhalation & exhalation for 4.8 s
Hi Persis, feel free to drop us a note at info@simutechgroup.com if you're interested in our consulting services and we'd be more than happy to help! Otherwise there is the ansys student community to find posts/articles: studentcommunity.ansys.com/