|February 20, 2012, 12:56||
Join Date: Jan 2012
Posts: 29Rep Power: 6
I am currently trying to run a simple simulation on Fluent - a cylinder oscillating in constant velocity field. The udf I am using is -
/* this function defines velocity of center of gravity for pure plunging motion*/
/* Plunging motion equation is z(t)=h*sin(2*pi*f*t) */
/*reset velocities */
/* Get the thread pointer for which this motion is defined */
/* vel is the vertical plunging velocity */
vel = 0.5*sin(time);
The cylinder is of frontal area 1m.
The fluid medium is of density 150kg/m3
I have checked mesh, it runs with the cylinder oscillating and produces no errors.
When I run the code, with the cylinder in constant velocity I get the following error -
Updating solution at time level N... done.
Updating mesh at time level N... done.
iter continuity x-velocity y-velocity time/iter
No error handler available
Error: FLUENT received a fatal signal (SEGMENTATION VIOLATION).
Error Object: ()
If anyone can advise of a solution or something for me to try I would be extremely grateful.
|March 16, 2012, 01:41||
Join Date: Mar 2011
Posts: 50Rep Power: 6
there are several problems in this udf. I will address one critical one. You are using a grid motion udf and you have written equation in terms of the nodes of the mesh.
vel = NODE_Y(v)*sin(2*pi*time);
for time you need to get flow time. there is a macro for that.
If your thread were a straight line of nodes, I am moving the nodes in sinusoidal form .
Therr are other problems in udf. I am busy. Hope this helps.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Segmentation violation||louiza||FLUENT||15||January 9, 2014 13:57|
|Segmentation Violation||Corentin||FLUENT||1||February 13, 2011 02:07|
|Defining Multiphase by text and by gui = different result and Segmentation Violation||RPJones||FLUENT||0||June 9, 2009 16:24|
|segmentation violation||wasan||FLUENT||0||December 23, 2008 12:37|
|C_UDMI - SEGMENTATION VIOLATION||CC||FLUENT||4||July 2, 2005 04:16|