|
[Sponsors] |
March 5, 2014, 13:50 |
Rotating mesh in a moving reference frame
|
#1 |
New Member
Mohammad Azim
Join Date: Mar 2014
Location: Southampton
Posts: 2
Rep Power: 0 |
Greetings!
I'm simulating an oscillating aerofoil for energy production. The idea is to make 2 separate mesh zones. One is for the plunging motion(vertical motion) of the aerofoil. It is set in fluent as a vertical translation reference frame via the source term. The other mesh is for the pitching motion(rotating sinusoidal) of the aerofoil. It is set as a sliding rotating mesh in the centre of the other mesh. I'm defining the rotating motion using the micro DEFINE_ADJUST to set the rotating speed via the mesh motion tab in cell zone condition. I use this code: DEFINE_ADJUST(speed, domain) { Thread *t; real time = CURRENT_TIME; real omega; real th, thd, thdd; real w = 2.0*M_PI*0.25696; real wt = w*time; th = 76*sin(wt+90); thd = 76*w*cos(wt+90); thdd = -w*w*th; omega = thd; thread_loop_c(t,domain) { if (THREAD_VAR(t).cell.surface_body == MOTION_TYPE_MOVING_GRID) { THREAD_VAR(t).cell.omega = omega; } } } But then it gave me this error: pitch.c: In function 'speed': pitch.c:21: error: 'struct tv_cell_struct' has no member named 'motion_spec' pitch.c:21: error: 'MOTION_TYPE_MOVING_GRID' undeclared (first use in this function) pitch.c:21: error: (Each undeclared identifier is reported only once pitch.c:21: error: for each function it appears in.) make[3]: *** [pitch.o] Error 1 My question is, what is motion_spec and MOTION_TYPE_MOVING_GRID means in this coding? And is there another way that I can do to produce the sinusoidal rotating mesh motion. Thanks! |
|
March 23, 2019, 01:13 |
|
#2 |
Member
Hanye Azimi
Join Date: Oct 2016
Posts: 42
Rep Power: 10 |
Hi
Have you overcome to this problem? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using reference frame motion or mesh motion? | jiejie | FLUENT | 5 | August 8, 2013 02:29 |
Post processing of rotational moving reference frame | Brathmann | FLUENT | 1 | March 22, 2013 11:39 |
Best choice for my setup ? Sliding mesh or single rotating ref frame ? | Rockda | FLUENT | 0 | August 23, 2011 06:05 |
Constant velocity of the material | Sas | CFX | 15 | July 13, 2010 09:56 |
does sb can tell me what is the differences between moving mesh and moving frame? | caohan | FLUENT | 0 | June 2, 2010 06:15 |