CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Function1 coded boundary condition value

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2024, 05:17
Default Function1 coded boundary condition value
  #1
mdh
New Member
 
Join Date: Oct 2024
Posts: 1
Rep Power: 0
mdh is on a distinguished road
Hello everyone,

I try to setup a boundary condition like this:

patch
{
type externalTemperature;
Ta uniform 313.15;
value uniform 343.15;

h coded;
name myCode;

code
#{

#};
}

I want to set h in dependency of the cell position. The value should be high in the middle of the patch and lower on the border, but I don't manage to get access to the boundaryMesh information.

I would be very happy, if someone could explain how to do that in this case.
Many thanks in advance!
mdh is offline   Reply With Quote

Reply

Tags
boundary condition, boundary mesh, coded, function1, openfoam 12


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
Coded mixed boundary condition Nihar Shah Main CFD Forum 0 March 11, 2023 00:15
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
Centrifugal fan j0hnny CFX 13 October 1, 2019 14:55
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 09:44
Radiation interface hinca CFX 15 January 26, 2014 18:11


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