|
[Sponsors] |
Boundary condition based on the distribution of a variable |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 22, 2024, 09:08 |
Boundary condition based on the distribution of a variable
|
#1 |
New Member
Join Date: Jan 2024
Posts: 3
Rep Power: 2 |
Hello everyone,
I have a question regarding the application of a boundary condition dependent on the distribution of a variable on a surface. I understand how to apply this type of boundary condition using expressions based on, for example, the average of a quantity over a surface. However, I am wondering if it is possible to apply a variable boundary condition based on the pointwise distribution of a variable on a surface. Thank you |
|
February 22, 2024, 18:28 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
Yes, you can do pointwise calculation of boundary variables. Not all boundary types support it but many do.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
February 26, 2024, 07:29 |
|
#3 |
New Member
Join Date: Jan 2024
Posts: 3
Rep Power: 2 |
Hi Glenn, thank you for your answer.
I'm not able to find the syntax to define the correct expression. To make a simple example, let's say I have to set a heat source on a surface named 'Surface_1' proportional to the pointwise distribution of temperature on the surface itself. If I want to define the heat source as a function of the average value of the temperature, the expression would be like 'Coefficient * areaAve(Temperature)@Surface_1.' What is the correct syntax to implement a similar expression but using the pointwise temperature distribution on the surface? Thank you |
|
February 26, 2024, 18:01 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
To apply a pointwise boundary condition on a wall, let's say you want to apply the convection heat transfer equation of q(dot) = h(T-T(far)), you simply set a source term on the surface to a CEL expression like
5[W m^-2 K^-1]*(T - 20[C]) You should then apply a source term linearisation coefficient of 5 [W m^-2 K^-1] (this is described in the manual). This will assist convergence. You could also do this using a heat flux boundary condition on the wall rather than a source term - I am not sure how the linearisation is handled in this case, and if it is poorly handled you will get poor convergence or divergence.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
February 28, 2024, 06:38 |
|
#5 |
New Member
Join Date: Jan 2024
Posts: 3
Rep Power: 2 |
Thank you very much for your help!
Best Regards |
|
Tags |
boundary condition, cfx |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Constant mass flow rate boundary condition | sahm | OpenFOAM | 0 | June 20, 2018 23:45 |
mixed inflow/outflow downstream boundary condition question | peob | OpenFOAM Running, Solving & CFD | 3 | February 3, 2017 11:54 |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 09:44 |
Accessing multiple boundary patches from a custom boundary condition file | ripudaman | OpenFOAM Programming & Development | 0 | October 22, 2014 19:34 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |