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

Different results from zeroGradient and groovyBC/codedMixed

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 26, 2023, 15:24
Default Different results from zeroGradient and groovyBC/codedMixed
  #1
New Member
 
Clement
Join Date: Jan 2023
Posts: 1
Rep Power: 0
cl3mzi is on a distinguished road
Hi everyone,

I'm working on urban CFD modelling, using OpenFoam v6, and I want to implement custum bondaries conditions to :
-implement temperature and velocity profiles
-change the condition according to wind direction

I already code two solution working either on groovyBC or codedMixed perfectly running on simple case.

My problem is relate to converge issue. It appears that for some reasons, at large scale solution doesnt not coverge in temperature.

After running some simple test case, it seems that for the first iterations zerogradient from codedMixed and groovyBC not work as expected.

In other word, solution converge if I implement :
{
type zeroGradient; (or fixedGradient)
}

and doesnt not coverge if I implement either :

type groovyBC;
valueExpression "T_air(time())";
gradientExpression "0";
fractionExpression "0";
value uniform 300;
either :

type mixed;
refValue 300.0;
refGradient 0;
valueFraction 0;

Stop my if I'm wrong but it supposed to perform the same things... Any ideas ?
cl3mzi is offline   Reply With Quote

Reply

Tags
codedmixed, convergence, fixed gradient, groovybc, zerogradient


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



All times are GMT -4. The time now is 14:13.