|
[Sponsors] |
November 16, 2018, 07:17 |
Value of a UDF depending on another UDF
|
#1 |
New Member
Join Date: Nov 2018
Posts: 1
Rep Power: 0 |
Hi everyone,
As an attachment, an illustration of the problem. This models a cylinder with an inlet and outlet and piston movement. - Case 1: When the piston goes down, we have mass flow at intlet and a closed outlet. - Case 2: When the piston goes up, we have a closed inlet and a pressure at outlet. I have write the UDF for the movement of the piston. I want to write a UDF for the inlet and outlet depending on the movement of the piston, i.e. when the acceleration is negativ -> Case 1 ; when the acceleration is positiv -> Case 2 Do i have to use UDM Macros ? In order to change the type of the boundary (mass flow inlet to wall), may I have to use a Scheme file and the TUI-Command or use a journal file? Thnank you. Regards, M. |
|
November 28, 2018, 00:48 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
according to my knowledge as of now we may change boundary condition using scheme only.
as I know, you cant execute scheme/journal from UDF -> so you should think how you will execute UDF from scheme/journal best regards |
|
December 5, 2018, 16:39 |
|
#3 | |
New Member
Sanket Dange
Join Date: Jul 2013
Posts: 9
Rep Power: 13 |
Quote:
This is a tricky problem. Solution to this is to use scheme or journal file and write TUI commands in it to flip boundary conditions after appropriate number of time steps. Just to elaborate, if piston is going down from time step 0 to 10 then after time step 10 BCs will get flip, similarly after time step 20 and so on till the simulation ends. Also you will have to drive your simulation from scheme or journal file. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for vapor pressure | anuarun | Fluent UDF and Scheme Programming | 13 | June 23, 2024 14:12 |
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF | acasas | CFD Freelancers | 1 | January 23, 2015 08:26 |
Parallelize UDF? Which kind of UDF? | Lilly | FLUENT | 5 | March 25, 2014 03:05 |
DEFINE_GEOM UDF Problems | Pat | FLUENT | 0 | August 14, 2003 14:16 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |