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

UDF weird problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2019, 06:53
Default UDF weird problem
  #1
New Member
 
Ma qiyu
Join Date: Dec 2018
Posts: 8
Rep Power: 7
Sunmax is on a distinguished road
Hello,

I have struggled with a UDF problem and I can‘t find same question anywhere.

Here is the thing:

I started running my case it compiled the UDF successfully and ran well.BUT when I load the auto saved case and data to resume calculation things became weird,it can't run at the beginning.

the error is:
Updating solution at time level N...
done.

Updating mesh at time level N... The fl process could not be started.
MPI Application rank 0 exited before MPI_Finalize() with status -1073741819


I used to run the same case well on another PC in fluent 15.0 using serial processing,my present fluent version is 2019R1 with same configurations.
I have tested other cases without UDF and they can resume calculation naturally.

Things like the old UDF isn't compatible new version of fluent.I put my UDF down below omiting the code detials:

Code:
#include<stdio.h>
#include"udf.h"
#include"math.h"
#define  PI 3.1415926
DEFINE_GRID_MOTION(up1,domain,dt,time,dtime)
{
Thread *tf=DT_THREAD(dt); 
face_t f;
Node *v;
int M=10000,N=8092,i,j,I0,n;
double L0 = 0.2, x[10002], y[10002], dx[10001], dy[10001], ds[10001], L[10001], xxxup, yyyup, xup[10001], yup[10001], a = 0.05, t = 0.16, wl = 0.08,

xx1[] = {},
h1[] = {};

begin_f_loop(f,tf)   

{  

	f_node_loop(f,tf,n)
	{ 
		
		if( n==0)
		{
			v=F_NODE(f,tf,n);
			F_UDMI(f,tf,0)=NODE_Y(v);

		}
	

	}

}
end_f_loop(f,tf);

if(time<=t)
{

}

begin_f_loop(f,tf)   
   
{  
	
    f_node_loop(f,tf,n)
    { 
	  v=F_NODE(f,tf,n);
      if( NODE_POS_NEED_UPDATE(v))
      {
      NODE_POS_UPDATED(v);

	  NODE_X(v)=xup[i];
	  NODE_Y(v)=yup[i];
      }


   }
 
}
   
end_f_loop(f,tf);

}


}
Dose anyone know how to fix that?
Sunmax is offline   Reply With Quote

Old   June 26, 2019, 20:46
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
delete this and try to run
Code:
if(time<=t)
{

}
other option: run on single core

best regards
AlexanderZ is offline   Reply With Quote

Old   June 26, 2019, 21:48
Default
  #3
New Member
 
Ma qiyu
Join Date: Dec 2018
Posts: 8
Rep Power: 7
Sunmax is on a distinguished road
the if code controls the motion so I can't delete this part,and I ran this case on single core as I mentioned
Sunmax is offline   Reply With Quote

Reply

Tags
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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
Problem with DPM simulation with particles injection and EXECUTE_AT_THE_END UDF. Ari Fluent UDF and Scheme Programming 4 May 31, 2016 08:51
udf loading problem santu Fluent UDF and Scheme Programming 1 May 22, 2015 15:47
Vaporization pressure UDF property problem? lehoanganh07 Fluent UDF and Scheme Programming 1 September 13, 2014 10:59
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56


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