|
[Sponsors] |
August 8, 2022, 22:58 |
UDF 3D mesh two movements example
|
#1 |
New Member
Juan M Reyes
Join Date: Jul 2022
Posts: 3
Rep Power: 4 |
Greetings everyone I´m trying to make a simple exmaple of UDF with a 3D volume, The exmaple basically consist in an sphere that follows an sinusoidal function on the Y axes and spining on its own axes with determinate angular speed, what I tried was to put a UDF function on the wall of the object and its surrounding mesh, enable dynamic mesh for the control volume and a spining rotation for the surroundings of the sphere, obviously when I ran it failed , this is the code that I tried to run:
/* Moving grid problem -CG movement of a box*/ #include "udf.h" static real velx = 0.0; DEFINE_CG_MOTION(box, dt, vel, omega, time, dtime) { NV_S(vel, =, 0.0); NV_S(omega, =, 0.0); velx = 0.05 * sin(3.1415927 * time / 10.); vel[1] = velx; Message("Time=%f, vel[1]=%f/n", time, vel[1]); } Somtimes it shows that the dynamic mesh produces a zero-volume, other times it generates other errors and sometimes it moves all the domain I will really appreciate your help guys |
|
Tags |
dynamic mesh, fluent, mesh motion, mesh movement, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to check residuals in UDF for dynamic mesh? | Prikane | FLUENT | 3 | May 8, 2019 10:33 |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
[Gmsh] 2D Mesh Generation Tutorial for GMSH | aeroslacker | OpenFOAM Meshing & Mesh Conversion | 12 | January 19, 2012 04:52 |
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Meshing & Mesh Conversion | 2 | March 27, 2011 22:11 |
Convergence moving mesh | lr103476 | OpenFOAM Running, Solving & CFD | 30 | November 19, 2007 15:09 |