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

When are boundary conditions for k and R being enforced?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2017, 11:59
Default When are boundary conditions for k and R being enforced?
  #1
New Member
 
Hendrik Mayer
Join Date: Dec 2014
Posts: 2
Rep Power: 0
wiking69 is on a distinguished road
Hi all,

I have searched the code but I can't seem to find the line where the boundary conditions for the k- or R-field are enforced.

There are plenty such lines for epsilon / omega / nut such as

this->nut_.correctBoundaryConditions();
or: omega_.boundaryFieldRef().updateCoeffs();
or: omegaEqn.ref().boundaryManipulate(omega_.boundaryF ieldRef());

but none for k / R.

I had a case where R on a wall-boundary started to go wild and didn't rest at fixedValue uniform (0 0 0 0 0 0)

To prevent questions, I'm using a LRR/SSG-omega Reynods-Stress model that is SST-like and is supposed to work without wall functions for R.

Gladly waiting for your hints.

Hendrik
wiking69 is offline   Reply With Quote

Old   June 17, 2025, 09:09
Default
  #2
New Member
 
David Marguc
Join Date: Dec 2016
Posts: 12
Rep Power: 10
David 1985 is on a distinguished road
I am having the same question.
Why should it not be necessary to reinforce the boundary condition for k?


I found out that adding the terms


Quote:
k_.boundaryFieldRef().updateCoeffs();
and later
Quote:
k.ref().boundaryManipulate(k_.boundaryFieldRef());
improves convergence in the v2f model in the Obi diffuser case.


So I ask myself, if there is a reason behind leaving the corresponding equations for k out.

Last edited by David 1985; June 17, 2025 at 12:06.
David 1985 is offline   Reply With Quote

Old   June 18, 2025, 03:50
Default
  #3
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 850
Blog Entries: 1
Rep Power: 19
dlahaye is on a distinguished road
turbulence.correct() solves turbulence eqns, including boundary conditions handling.
dlahaye is offline   Reply With Quote

Reply

Tags
boundary condition, reynolds stress

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
CGNS Boundary conditions using SU2 denzell SU2 3 July 9, 2018 05:58
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 04:39
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00


All times are GMT -4. The time now is 23:01.