|
[Sponsors] |
October 22, 2018, 03:30 |
Using a static void function in Fluent
|
#1 |
Member
Hanye Azimi
Join Date: Oct 2016
Posts: 42
Rep Power: 9 |
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 |
|
Tags |
fluent, static function, udf |
|
|
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 |