CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF 3D mesh two movements example

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2022, 21:58
Post UDF 3D mesh two movements example
  #1
New Member
 
Juan M Reyes
Join Date: Jul 2022
Posts: 3
Rep Power: 3
JuanReyes is on a distinguished road
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
JuanReyes is offline   Reply With Quote

Reply

Tags
dynamic mesh, fluent, mesh motion, mesh movement, udf


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check residuals in UDF for dynamic mesh? Prikane FLUENT 3 May 8, 2019 09:33
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 14:09


All times are GMT -4. The time now is 02:49.