|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Anne
Join Date: Sep 2022
Posts: 1
Rep Power: 0 ![]() |
Hey everyone,
I am looking for a way to find the inlet cells in order to set the UDMI equal to zero at these cells. Can anybody help me out? I now looked into a way to just use: if X[0] < 1e-4 { CUDMI(c,t,0) = 0; CUDMI(c,t,1) = 0; } But this did not work and ofcourse this does not set the specific cells of the inlet to zero but rather an approximation. Can anybody help? Thanks! |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 35 ![]() ![]() |
inlet is a boundary, so it has faces not cells
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
|
|
|
|
|
#3 |
|
New Member
Liu Wenchao
Join Date: Jan 2021
Posts: 15
Rep Power: 6 ![]() |
Ansys Fluent allows users to set face parameters and use it in Boundary Condition.
Try "Define_Profile" function in here https://www.afs.enea.it/project/nept...f/main_pre.htm |
|
|
|
|
|
![]() |
| Tags |
| cell area, inlet condition, udf code |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Disappearing mass when using udf inlet profile | divergence | Fluent UDF and Scheme Programming | 5 | January 2, 2021 15:56 |
| UDF profile: Fluent method for coupling inlet and outlet | I-mech | Fluent UDF and Scheme Programming | 0 | May 10, 2014 11:36 |
| [snappyHexMesh] snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Meshing & Mesh Conversion | 2 | March 27, 2011 22:11 |
| [snappyHexMesh] snappyHexMesh aborting | Tobi | OpenFOAM Meshing & Mesh Conversion | 0 | November 10, 2010 04:23 |
| [snappyHexMesh] external flow with snappyHexMesh | chelvistero | OpenFOAM Meshing & Mesh Conversion | 11 | January 15, 2010 20:43 |