CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   MixeddirectionMixed bc (https://www.cfd-online.com/Forums/openfoam-solving/58181-mixeddirectionmixed-bc.html)

r2d2 November 25, 2008 11:15

Hi, Just a question: If I pre
 
Hi, Just a question:
If I prescribe a mixed bc for a e.g. vector quantity as U, is it possible to modify at runtime the values associated with the value,gradient,blending?

I mean if initially I have a zero gradient condition:
outflow
{
// type zeroGradient;
type mixed;
refValue nonuniform List<vector>
20
(
(0 0 0)
...
);
refGradient nonuniform List<vector>
20
(
(0 0 0)
...
);
valueFraction nonuniform List<scalar>
20
(
0
...
);
}

...and after some runtime I get at position 5 in my patch a value for U that I want to keep, is it possible to set the 5th value in refValue list to what I want and the 5th value in valueFraction list to 1? Of course doing the corresponding changes in the boundary condition for p...
any suggestions?
Cheers,
Radu

r2d2 December 22, 2008 07:18

Hi, I am really stuck with t
 
Hi,
I am really stuck with this. I will try to reformulate my question, maybe I have better luck.
If I have a vector or a scalar with a boundary condition of type "mixed", is there a way of changing the refValue, refGradient and valueFraction at runtime? Which would be the syntax do do this?
Thanks,
Radu


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