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

using codedFixedValue to make a custom BC depending on internal baffle flux

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2025, 18:06
Default using codedFixedValue to make a custom BC depending on internal baffle flux
  #1
zog
New Member
 
Jacques
Join Date: Jul 2019
Posts: 20
Rep Power: 7
zog is on a distinguished road
I want to make a custom (pressure) boundary condition whose value is based on the surface flux in an internal surface. What would you recommend as a start, how would you proceed (is codedFixedValue even the right way to do it ?)

I think i need the following :
-a baffle that i can access in codedFixedValue (via fvPatch ?), but i don't know how to identify the correct surface/patch.
-a way to calculate the mass flow rate on this patch : a loop on the faces of the adequate patch (cf previous point) again with fvPatch for the positions of the faces and the velocity
-calculate the correct function and boundary condition
-loop over the BC patch faces and apply the custom pressure.

I think the main issue will be to find, identify and get the face variables of the internal face/baffle to feed the function.

Should i look into it using these checkpoints or is there an alternative, better and more appropriate way ?

In any case i am eager to take any advice as I am not an expert in openfoam programming at all, and I hope to progress doing some custom projects like this.
zog is offline   Reply With Quote

Reply

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
How do I create a variable heat flux on a baffle interface? oyvindss STAR-CCM+ 1 March 7, 2018 00:53
Calculate a custom flux through the interface of a two phase flow arsalan.dryi OpenFOAM Post-Processing 5 October 24, 2016 14:31
How to make a "baffle" in ICEM-CFX Joe Main CFD Forum 10 December 8, 2008 20:11
How to make a "baffle" in ICEM-CFX Joe CFX 0 December 4, 2008 14:36
OpenFOAM with IBM AIX matthias OpenFOAM Installation 20 March 25, 2008 02:36


All times are GMT -4. The time now is 22:11.