|
[Sponsors] |
Using slef define function to describe the inlet |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 10, 2019, 09:03 |
Using slef define function to describe the inlet
|
#1 |
Member
Join Date: Feb 2019
Posts: 30
Rep Power: 7 |
Hello, I have a question about the define of Piecewise function as inlet in CFX. Someone can help me?
The transisent process is 5 s in total, I would like to using two different fit linear to define the inlet, one from 0 to 1.5 s, the other from 1.5 s to 5 s. The functions are show below: func 1.PNGfunc 2.PNG Both of the functions are quadratic function. How can I achieve it in CFX? |
|
May 10, 2019, 10:27 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32 |
Say you have f1, and f2 to be switched at t = t_sw
F = step((t_sw - t) / 1 [s]) * f1 + (1 - step((t_sw - t) / 1 [s]) * f2 check it behaves correctly at t_sw |
|
May 13, 2019, 03:44 |
|
#3 | |
Member
Join Date: Feb 2019
Posts: 30
Rep Power: 7 |
Quote:
Thank you! I have checked, it did works! And it can be also written as F = step((t_sw - t) / 1 [s]) * f1 + step((t - t_sw) / 1 [s]) * f2. Before I thought ''step'' is only used to describe the step function, now has new idea how it works. Suppi! |
||
Tags |
define inlet, piecewise function, quadratic function, variable inlet |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Laminar Kinetic Energy Model (Walters 2008) | logoswort | Fluent UDF and Scheme Programming | 2 | May 19, 2017 19:41 |
[swak4Foam] installation problem with version 0.2.3 | Claudio87 | OpenFOAM Community Contributions | 9 | May 8, 2013 10:20 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 05:42 |
Droplet Evaporation | Christian | Main CFD Forum | 2 | February 27, 2007 06:27 |
How define porous media as INLET? | Harry Qiu | FLUENT | 2 | April 13, 2001 16:34 |