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, 03:30
Default Using a static void function in Fluent
  #1
Member
 
Hanye Azimi
Join Date: Oct 2016
Posts: 42
Rep Power: 9
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
foamToTecplot360 thomasduerr OpenFOAM Post-Processing 121 June 11, 2021 10:05
[isoAdvector] Is it possible to add isoAdvector capabilities to interphaseChangeFoam? chaohui OpenFOAM Community Contributions 8 August 17, 2020 03:16
[mesh manipulation] RefineMesh Error and Foam warning jiahui_93 OpenFOAM Meshing & Mesh Conversion 4 March 3, 2018 11:32
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
From function void GGIInterpolation anton_lias OpenFOAM Running, Solving & CFD 0 August 28, 2012 07:13


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