CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Boundary condition based on the distribution of a variable

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 22, 2024, 09:08
Default Boundary condition based on the distribution of a variable
  #1
New Member
 
Join Date: Jan 2024
Posts: 3
Rep Power: 2
WuMing00 is on a distinguished road
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
WuMing00 is offline   Reply With Quote

Old   February 22, 2024, 18:28
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,841
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   February 26, 2024, 07:29
Default
  #3
New Member
 
Join Date: Jan 2024
Posts: 3
Rep Power: 2
WuMing00 is on a distinguished road
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
WuMing00 is offline   Reply With Quote

Old   February 26, 2024, 18:01
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,841
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
WuMing00 likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   February 28, 2024, 06:38
Default
  #5
New Member
 
Join Date: Jan 2024
Posts: 3
Rep Power: 2
WuMing00 is on a distinguished road
Thank you very much for your help!

Best Regards
WuMing00 is offline   Reply With Quote

Reply

Tags
boundary condition, cfx

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 17:16.