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

how to use DEFINE_GEOM to change the geometry with time?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By blackmask

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2018, 06:08
Thumbs down how to use DEFINE_GEOM to change the geometry with time?
  #1
New Member
 
Join Date: Apr 2017
Posts: 20
Rep Power: 9
dengdeng is on a distinguished road
Hi,
I am simulating the flow around an object deforming with time. The time-dependent function of the boundary is already known(it has the form of y=f(x,t)).
I've got some basic infomation of DEFINE_GEOM on this page:
http:////www.sharcnet.ca/Software/An...fine_geom.html
However, it seems no argument related to time is included in this script. I tried to add the variable time like this:
Code:
DEFINE_GEOM(BL_FP1,domain,dt,position,time)
and the UDF failed to be compiled.
Has anyone worked on similar case before? Any help or suggestion is welcome.
Thank you.
dengdeng is offline   Reply With Quote

Old   September 13, 2018, 07:12
Default
  #2
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 22
blackmask will become famous soon enough
You can use the following code.

Code:
DEFINE_GEOM (BL_FP1, d, dt, position)
{
real time = CURRENT_TIME;



...

}
dengdeng likes this.
blackmask is offline   Reply With Quote

Old   September 13, 2018, 10:06
Default
  #3
New Member
 
Join Date: Apr 2017
Posts: 20
Rep Power: 9
dengdeng is on a distinguished road
It works! Thank you : )
dengdeng is offline   Reply With Quote

Reply

Tags
define_geom, 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
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 42 May 8, 2024 00:17
Elastic or Plastic Deformations in OpenFOAM NickolasPl OpenFOAM Pre-Processing 36 September 23, 2023 09:22
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 16:33
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 10:34


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