CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] groovyBC set an initial unknown guess constant

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2016, 07:13
Default groovyBC set an initial unknown guess constant
  #1
Senior Member
 
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12
ancolli is on a distinguished road
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
ancolli is offline   Reply With Quote

Old   June 15, 2016, 13:32
Default
  #2
Senior Member
 
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11
rapierrz is on a distinguished road
Hi Alejandro,

You can define this parameter in variables section in groovyBC.
rapierrz is offline   Reply With Quote

Old   June 15, 2016, 13:46
Default
  #3
Senior Member
 
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12
ancolli is on a distinguished road
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
ancolli is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 15:59.