CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Problems with Dynamic Mesh: DEFINE_GRID_MOTION (https://www.cfd-online.com/Forums/fluent/42737-problems-dynamic-mesh-define_grid_motion.html)

Claudia November 2, 2006 07:31

Problems with Dynamic Mesh: DEFINE_GRID_MOTION
 
Hi everybody,

I'm trying to work with dynamic meshes with a DEFINE_GRID_MOTION UDF. The UDF does work, so the boundary for which it is defined does move, but the fluid-mesh stays the same so that I get after some iterations problems with negative cells. So does someone know this kind of problem and can tell me what I forgot to enable so that the interior-nodes will also change their places so that I will not get negative cells

Thanks

qincz November 2, 2006 10:04

Re: Problems with Dynamic Mesh: DEFINE_GRID_MOTION
 
maybe your time step is too large. in one step the boundary moved so big distance that u got the negative cells

Claudia November 3, 2006 01:45

Re: Problems with Dynamic Mesh: DEFINE_GRID_MOTION
 
I don't think that is the problem, because I can run 6 timesteps till the distance the boundary moves is so big that I get negative Volume cells. The problem is the surrounding cells do not react on the slowly motion of the boundary....

cfdxue November 3, 2006 02:57

Re: Problems with Dynamic Mesh: DEFINE_GRID_MOTION
 
1) pay attention to collaps factor,... ur mesh is not going to collaps,.. chang it,..

2) decrease ur time step,.. it could work, if ur collapse factor is little bit wrong,...

if its not work,.. inform me ur grid size,.. and time step,..


Claudia November 3, 2006 04:02

Re: Problems with Dynamic Mesh: DEFINE_GRID_MOTION
 
20 minutes ago I got it. Now it works. The mistake was the I took no trinangular cells. I took rectangular cells. But its for me a little bit strange that it doesn't work because of rectangular cells.... does somebody know how I can get it work with rectangular cells?

Thanks for the response. What is a collapse factor and where can I check and change it? Maybe this problem will appear someday and it would be good to know the answer...

Thanks a lot!

cfdxue November 3, 2006 04:47

Re: Problems with Dynamic Mesh: DEFINE_GRID_MOTION
 
It should work with both mesh,..

if u like, u could send me case file and udf at cfdxue@yahoo.com,..

best luck


Eirik November 3, 2006 11:59

Re: Problems with Dynamic Mesh: DEFINE_GRID_MOTION
 
Deformation of hex-meshes is initially swithced off in Fluent. You can turn this feature on through the TUI command 'def mod dmc sp soas', alternative set the scheme variable dynamesh/spring/all-element-type? to #t

Regards,

Eirik

Claudia November 3, 2006 13:22

Re: Problems with Dynamic Mesh: DEFINE_GRID_MOTION
 
That would explain why it doesn't work with rectangular mesh. Unfortunatly I don't know how to use both of them... can you tell me how and where I have to make the changes, please?

Thanks a lot!


Eirik November 3, 2006 14:25

Re: Problems with Dynamic Mesh: DEFINE_GRID_MOTION
 
In Fluent's Text User Interface (TUI - perhaps main window is a better phrase), just type the command I gave you. Typing return after each word will bring you to the next menu-level, like it's written brings you all the way down in one step. You'll then be prompted whether or not to turn the feature on, just answer yes.

- Eirik

Claudia November 3, 2006 15:34

Re: Problems with Dynamic Mesh: DEFINE_GRID_MOTION
 
Tanks a lot! I will try it on Monday morning first! (Here it is 22:40 at the moment Friday evening....) have a nice weekend!

C. H. November 6, 2006 02:28

Re: Problems with Dynamic Mesh: DEFINE_GRID_MOTION
 
Thanks a lot!

It does work!

Claudia

LexMedina September 25, 2013 14:23

Dear Eirik,

I am having the same problem as Claudia. I tried to set the command you gave on TUI, but it didn't recognize the comand dmc...

I tried part by part, first with def, then mod, works fine. But the 'dmc so soas' does not work that well. Could it be a version problem? I am using 14.5 here in university.

Thanks,
Alex


All times are GMT -4. The time now is 16:59.