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

Using a static void function in Fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2018, 04:30
Default Using a static void function in Fluent
  #1
Member
 
Hanye Azimi
Join Date: Oct 2016
Posts: 42
Rep Power: 10
ronak is on a distinguished road
Hi every body
How could I match a "static void" function to a source term UDF?



This is my function:

static void plung(real time,real *y);
{
real y;
real h,chord,f;
real h1 = h*chord;
real w = 2.0*M_PI*f;
real omega = w*time;
y = h1*sin(omega);
}




Shall I put this function at the source UDF? Or shall I compile it as another UDF?
Thanks in advance
ronak is offline   Reply With Quote

Reply

Tags
fluent, static function, 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
[isoAdvector] Is it possible to add isoAdvector capabilities to interphaseChangeFoam? chaohui OpenFOAM Community Contributions 9 June 21, 2024 13:21
foamToTecplot360 thomasduerr OpenFOAM Post-Processing 121 June 11, 2021 11:05
[mesh manipulation] RefineMesh Error and Foam warning jiahui_93 OpenFOAM Meshing & Mesh Conversion 4 March 3, 2018 12:32
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
From function void GGIInterpolation anton_lias OpenFOAM Running, Solving & CFD 0 August 28, 2012 08:13


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