CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Change Parameter of Boundary Condition (https://www.cfd-online.com/Forums/openfoam-programming-development/169008-change-parameter-boundary-condition.html)

inginheiro April 1, 2016 10:51

Change Parameter of Boundary Condition
 
Dear Foamers,

i have following BC for temperature:

Code:


wall1
            {
                type            compressible::turbulentTemperatureCoupledBaffleMixed;
                Tnbr            T;
                kappa          solidThermo;
                kappaName      none;
                thicknessLayers (0.03);
                kappaLayers    (0.03);
                value          uniform 300;


            }

at t=2s , for example, I would like to change thicknessLayers to 0.05.

Whats the best way to do it?

I'm looking for something similar to:

T.boundaryField()[patchID].thicknessLayers = 0.05


Ps: I cant use groovyBC or write directly the new temperature value.


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