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

Dynamic Mesh UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2004, 08:20
Default Dynamic Mesh UDF
  #1
Qureshi
Guest
 
Posts: n/a
Dynamic Meshing UDF's

I have done the tutorial 11.

My problems are: #1 To use the two following Sample Examples of Dynamic Meshing as mentioned in the documentation.

How can this be done? Is there any specific case for which these are being made? I have been able to build the UDF file for a simple grid with a bar being placed in flow but when I build it I get the message: -------------------------------------- " 1 file(s) copied. (system "move user_nt.udf libudf\ntx86\2d")0 (system "copy C:\FLUENT.INC\fluent6.1\src\makefile_nt.udf libudf\ntx86\2d\makefile") 1 file(s) copied. 0 (chdir "libudf")() (chdir "ntx86\2d")() Def_Grid_Geom.c # Generating udf_names.c because of makefile Def_Grid_Geom.obj

Done." -------------------------------------- And when I load it I get the message:

-------------------------------------- "Opening library "libudf"... Error: open_udf_library: The system cannot find the file specified.

Error Object: () " -------------------------------------- #2 The documentation of UDF does't give much help on writing UDF's except you tend to know what Define Macro are to be used, but making a UDF on a physical problem isn't well explained. Anyone having any guidelines?

4.5.2 DEFINE_GEOM

Description

The DEFINE_GEOM macro is used to define the geometry of a deforming zone. By default, FLUENT provides a mechanism for defining node motion along a planar or cylindrical surface. When FLUENT updates a node on a deforming zone (e.g., through spring-based smoothing or after local face re-meshing) the node is ``repositioned'' by calling the DEFINE_GEOM UDF. Note that UDFs that are defined using DEFINE_GEOM can only be executed as compiled UDFs.

The following UDF, named parabola, is executed as a compiled UDF.

4.5.3 DEFINE_GRID_MOTION

Description

By default, FLUENT updates the node positions on a dynamic zone by applying the solid-body motion equation. This implies that there is no relative motion between the nodes on the dynamic zone. However, if you need to control the motion of each node independently, then you can use a grid motion UDF. For a DEFINE_GRID_MOTION UDF, you can update the position of each node based on, for example, the deflection due to fluid-structure interaction.

#3 Has anyone had any experience of studying an oscilating airfoil with some frequency in Fluent using UDF? I am unable to get hold of the UDF business but it seems a very promising feature of Fluent.

Any comments and suggestion in these context would be appreciated.

Qureshi.
  Reply With Quote

Old   December 2, 2009, 01:27
Default
  #2
New Member
 
Saeed Abbasi
Join Date: Sep 2009
Location: Iran
Posts: 20
Rep Power: 17
sabbasi_mr is on a distinguished road
when you recieve this: "Opening library "libudf"... Error: open_udf_library
you must do this:
Run the Vcvars32.bat file in the ..\BIN directory found in the installed directory under ..\MSDEV or ..\DevStudio\VC. This file contains the environment variables required to run build tools from a command prompt.
and run Fluent from visual c++ command prompt
sabbasi_mr is offline   Reply With Quote

Old   January 13, 2017, 10:39
Default what is #F error
  #3
New Member
 
invincible
Join Date: Dec 2016
Posts: 17
Rep Power: 9
osamaajaz is on a distinguished road
respected mates, there is a problem i am facing with UDF file. Kindly check and pont out what is the main error

this is code i am using for 2D
and getting the error that is showed in the attached picture


#include "udf.h"
DEFINE_CG_MOTION(move,dt,vel,omega,time,dtime)
{
vel[1] = 0.0942*sin(0.628*time);

}

DEFINE_CG_MOTION(ball1,dt,vel,omega,time,dtime)
{
if (time>0 && time<1)
vel[1]=0.018*time;
else if (time>5 && time<5.1)
vel[1]=-0.0005;
else if (time>5.1 && time<5.5)
vel[1]=-0.035;
else
vel[1]=-0.00;

}

DEFINE_CG_MOTION(ball2,dt,vel,omega,time,dtime)
{
if (time>0 && time<0.4)
vel[1]=-0.01;
else if (time>0.4 && time<5.5)
vel[1]=0.0942*sin(0.628*time);
else if (time>5.5 && time<6.17)
vel[1]=-0.0028;
else
vel[1]=0.0942*sin(0.628*time);
}
Attached Images
File Type: png Untitled.png (22.1 KB, 33 views)
osamaajaz is offline   Reply With Quote

Old   January 15, 2017, 12:29
Default
  #4
AHF
Member
 
AHF's Avatar
 
amirhossein
Join Date: Jul 2014
Location: Canada
Posts: 81
Rep Power: 12
AHF is on a distinguished road
Quote:
Originally Posted by osamaajaz View Post
respected mates, there is a problem i am facing with UDF file. Kindly check and pont out what is the main error

this is code i am using for 2D
and getting the error that is showed in the attached picture


#include "udf.h"
DEFINE_CG_MOTION(move,dt,vel,omega,time,dtime)
{
vel[1] = 0.0942*sin(0.628*time);

}

DEFINE_CG_MOTION(ball1,dt,vel,omega,time,dtime)
{
if (time>0 && time<1)
vel[1]=0.018*time;
else if (time>5 && time<5.1)
vel[1]=-0.0005;
else if (time>5.1 && time<5.5)
vel[1]=-0.035;
else
vel[1]=-0.00;

}

DEFINE_CG_MOTION(ball2,dt,vel,omega,time,dtime)
{
if (time>0 && time<0.4)
vel[1]=-0.01;
else if (time>0.4 && time<5.5)
vel[1]=0.0942*sin(0.628*time);
else if (time>5.5 && time<6.17)
vel[1]=-0.0028;
else
vel[1]=0.0942*sin(0.628*time);
}
Hi
how did you compile it ?
you have to install Microsoft visual studio and then compile your code.
__________________
amirhosseinfardi94@gmail.com
AHF is offline   Reply With Quote

Old   January 17, 2017, 10:45
Default
  #5
New Member
 
invincible
Join Date: Dec 2016
Posts: 17
Rep Power: 9
osamaajaz is on a distinguished road
hi
i have installed MS VS...
you can check in the attached picture
even after that i am experiencing the same problem.
Attached Images
File Type: png 1.png (60.7 KB, 35 views)
osamaajaz is offline   Reply With Quote

Old   January 17, 2017, 10:46
Default
  #6
New Member
 
invincible
Join Date: Dec 2016
Posts: 17
Rep Power: 9
osamaajaz is on a distinguished road
Quote:
Originally Posted by sabbasi_mr View Post
when you recieve this: "Opening library "libudf"... Error: open_udf_library
you must do this:
Run the Vcvars32.bat file in the ..\BIN directory found in the installed directory under ..\MSDEV or ..\DevStudio\VC. This file contains the environment variables required to run build tools from a command prompt.
and run Fluent from visual c++ command prompt
i have build the environment variables
even after that...the same error
osamaajaz is offline   Reply With Quote

Old   January 17, 2017, 10:50
Default without UDF, accuracy of results
  #7
New Member
 
invincible
Join Date: Dec 2016
Posts: 17
Rep Power: 9
osamaajaz is on a distinguished road
hello mates,
if i skip UDF portion in fluent then what would be accuracy of that result?
Will it be reliable?
osamaajaz is offline   Reply With Quote

Old   March 23, 2017, 08:37
Default
  #8
Member
 
saurabh kumar gupta
Join Date: Jul 2016
Location: kanpur,india
Posts: 53
Rep Power: 10
rsaurabh is on a distinguished road
hi,
you need to check compatibility of both, ANSYS and VS.
rsaurabh is offline   Reply With Quote

Reply


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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Dynamic mesh UDF problem Peter FLUENT 2 November 12, 2007 03:10
writing a dynamic mesh udf ALPER ALBAYRAQ FLUENT 0 October 24, 2005 09:41
Problem related with UDF for dynamic mesh Ryan FLUENT 6 April 29, 2004 10:29
UDF problem for dynamic mesh??? lyf FLUENT 1 April 19, 2004 07:43


All times are GMT -4. The time now is 22:05.