Remeshing error using Define_grid_motion in Macro parallel

MawenMawen Member Posts: 7

Hello,

I am having trouble using the remeshing option when using the define_grid_motion Macro in parallel, smoothing is working fine.

It is working fine in serial.

I have attached a screenshot after it crashes. Does anyone have any suggestions, thank you for taking the time. Happy to provide further information if needed.

I am using the define_grid_motion macro as given in the manual and added parallel lines to only run it on the nodes.

The object is moving , based on the solution of newton second law using the surface forces. I believe the problem arises once the object moves forward and the partition line needs to readjust not ending on the surface. Is there anyway the parition lines can be updated during the simulation when using dynamic meshing at the same time?

////CODE///

DEFINE_GRID_MOTION(foil, domain, dt, time, dtime)
{
#if !RP_HOST
	Thread *tf = DT_THREAD(dt);
	face_t f;
	Node *v;
	int n;

	SET_DEFORMING_THREAD_FLAG(THREAD_T0(tf));
	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);

                           //Update NODE_Y(v) = y(x,t)
                          
                         }
                  }
        }
	end_f_loop(f, tf);
	
 #endif
}

///


Answers

Sign In or Register to comment.