|
[Sponsors] |
[swak4Foam] groovyBC set an initial unknown guess constant |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 13 ![]() |
My BC is as follow (for a scalar in laplacianFoam)
dT/dx=f(T,T0) (where f is nonlinear and T0 is unknown) I solved the problem with groovyBC when T0 is known, applying N-R (Tn+1=Tn-function(Tn,T0)). it is working. Now my problem is how to set T0 where is unknown (how to tell to groovyBC an started guessed value? Thank u |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 12 ![]() |
Hi Alejandro,
You can define this parameter in variables section in groovyBC. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 13 ![]() |
but how?
If i define T0 in variables, for example T0=5; Eq 1. T0=T0+ f; Eq 2. Where f depends of flux in the last iteration. will use for all iterations T0=5 in eq 2. I need T0 in the right of eq. 2 to be T0 of the left for the last iteration |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free surface issues with interDyMFoam for hydroturbine | oumnion | OpenFOAM Running, Solving & CFD | 0 | October 6, 2017 14:05 |
pressure in incompressible solvers e.g. simpleFoam | chrizzl | OpenFOAM Running, Solving & CFD | 13 | March 28, 2017 05:49 |
HeatSource BC to the whole region in chtMultiRegionHeater | xsa | OpenFOAM Running, Solving & CFD | 3 | November 7, 2016 05:07 |
pimpleFoam: turbulence->correct(); is not executed when using residualControl | hfs | OpenFOAM Running, Solving & CFD | 3 | October 29, 2013 08:35 |
pisoFoam with k-epsilon turb blows up - Some questions | Heroic | OpenFOAM Running, Solving & CFD | 26 | December 17, 2012 03:34 |