Stretching wall

  • Last Post 30 April 2019
Serwur posted this 29 April 2019


I have a problem with moving wall that stretches other boundaries. I don't how script for this part look like and if anybody knows how to do it properly i would appreciate it so much. Below are some screen shoots to show the problem and script which I use for inner circle that moves by eccentricity around the center of piston. Upper part that represents blade should move up and down synchronized with inner circle.



To which parts of blade should I attach scripts? Script for inner blade is good and works well as moving boundary. If I use similar script for down part of blade then  stretches left and right part. (of course i do not change "x" velocity for blade)

 Script for inner circle.

#define RPM 15.0
#define PI 3.1415927
#define ECCENTRICITY 0.02

static real velocity =  2 * PI * (RPM / 60.0) * ECCENTRICITY;

DEFINE_CG_MOTION(innerCircle, dt, vel, omega, time, dtime)

   NV_S(vel, =, 0.0);
   NV_S(omega, =, 0.0);

   if (!Data_Valid_P())

   vel[0] = cos(velocity/ECCENTRICITY*time) * velocity;
   vel[1] = sin(velocity/ECCENTRICITY*time) * velocity;

   Message("\nTotal time = %f ", time);
   Message("InnerCricle : vel[0](x) = %f ", vel[0]);
   Message("InnerCricle : vel[1](y) = %f", vel[1]);

Thanks for replies!

rwoolhou posted this 30 April 2019

You're probably going to need to remesh the fluid zone, so have a look in the User's Guide, Fluent Tutorials (under Help) and YouTube for boundary settings.