CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF for Rotation (https://www.cfd-online.com/Forums/fluent-udf/144638-udf-rotation.html)

Johnmuddy November 18, 2014 10:52

UDF for Rotation
 
1 Attachment(s)
i'm looking for a function that allows to rotate the body between two corners according to the flow.
i'ts a dynamic mesh whith smoothing and remeshing.
the time step is 0.001
end the center of rotation is (0,0)
this is the 6dof function

Quote:

DEFINE_SDOF_PROPERTIES (Rotazione, prop, dt, time, dtime)
{
prop[SDOF_MASS] = 0.01;
prop[SDOF_IZZ] = 0.00833;
prop[SDOF_ZERO_TRANS_X] = TRUE ;
prop[SDOF_ZERO_TRANS_Y] = TRUE ;
prop[SDOF_ZERO_TRANS_Z] = TRUE ;
prop[SDOF_ZERO_ROT_Y] = TRUE ;
prop[SDOF_ZERO_ROT_X] = TRUE ;
printf ("\n2d_Rotazione: Updated 6DOF properties");
}
Now i need to rotate betwen 55° and 5° .
this is the error that fluent gives me end what appens to the mesh
Attachment 35275

Please help me ! :(

Johnmuddy November 20, 2014 09:04

Please, anyone can help me? thanks in advance...

linh nguyen November 21, 2014 07:10

Did you tried to reduce under relaxation factor? It's might take longer running time, but might solve the problem

Johnmuddy November 21, 2014 12:22

2 Attachment(s)
Quote:

Originally Posted by linh nguyen (Post 520371)
Did you tried to reduce under relaxation factor? It's might take longer running time, but might solve the problem

which particular parameter i have to reduce ?

I think the problem that causes negative volumes is due to the fact that I don't have imposed a limit on the rotation as the cells at the edges deform excessively. Anyone knows how to do it ?

i posted the image of the initial condition of the valve, and what i want to do it
and what happens instead.
Attachment 35382
Attachment 35381

Johnmuddy November 22, 2014 06:10

Now i'm able to make the simulation without volume errors . but i'm not able to define the angle limits on rotations.

I thought, bypassing the problem, to describe the boundaries on the translation of the center of gravity of the wing so that when it reaches one of the limits of this interval, have v = 0 .. but what macro should i use end how?

luna125 October 25, 2016 08:44

could you describe your solution on how to solve the negative volume?


All times are GMT -4. The time now is 01:52.