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