|
[Sponsors] |
August 14, 2013, 09:30 |
How to set more than one UDF?
|
#1 |
New Member
Alex Lozovskiy
Join Date: Aug 2013
Posts: 11
Rep Power: 12 |
Is there a way to define UDFs for more than one boundary condition?
I prepare several files in a form Code:
/********************************************************************** unsteady_pressure.c UDF for specifying a transient pressure profile boundary condition ***********************************************************************/ #include "udf.h" DEFINE_PROFILE(unsteady_pres, thread, position) { face_t f; real t = CURRENT_TIME; begin_f_loop(f, thread) { double a = 101000*t; if (a>101000) a = 101000; F_PROFILE(f, thread, position) = a; } end_f_loop(f, thread) } So I assume I need to put all my different functions intended for different boundaries in just one file. How should I do that? Are there any examples? Thanks. |
|
Tags |
udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] ICEM Scripting Issues | tylerplowright | ANSYS Meshing & Geometry | 33 | September 27, 2021 16:35 |
Instalation on ubuntu 710 | basilwatson | OpenFOAM Installation | 17 | March 16, 2012 20:16 |
How to set a udf like this? | aleisia | Fluent UDF and Scheme Programming | 0 | March 29, 2011 21:50 |
Installation problems | indy | OpenFOAM Installation | 7 | April 3, 2009 09:40 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 19:08 |