CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Use transient gradient as BC- timeVaryingUniformFixedGradient? (https://www.cfd-online.com/Forums/openfoam/89171-use-transient-gradient-bc-timevaryinguniformfixedgradient.html)

homerun4711 June 7, 2011 03:08

Use transient gradient as BC- timeVaryingUniformFixedGradient?
 
Hello!

I have yet another question and hope that you can help me.

To simulate a heat flux into a wall (heat transfer in solid, laplacianFoam) I
need to apply a transient gradient to a patch (simulating sun shine).

The values I need to apply are listed in a text file and I would like to
apply them the same way timeVaryingUniformFixedValue is working.

Code:

SecondFace
    {
    type        timeVaryingUniformFixedValue;
    fileName    "SecondFace.dat";
    }

Some sort of timeVaryingUniformFixedGradient would be working fine.
Is there something like that or do you have other ideas how this
could be done?

Kind regards,
Walter

homerun4711 June 7, 2011 03:23

One thought that came to my mind right now:

In the time step folders there are files listing the boundary conditions and start values for each step. Is it possible to create a part of these files beforehand?

E.g. OpenFOAM finds an already existing temperature file T in the time step directory just listing a new boundaryField-section for that step. The values
for T are written in there automatically during the calculation of the first step.

gschaider June 7, 2011 11:20

Quote:

Originally Posted by homerun4711 (Post 310794)
One thought that came to my mind right now:

In the time step folders there are files listing the boundary conditions and start values for each step. Is it possible to create a part of these files beforehand?

E.g. OpenFOAM finds an already existing temperature file T in the time step directory just listing a new boundaryField-section for that step. The values
for T are written in there automatically during the calculation of the first step.

<the sound of Bernhard unashamedly beating the drum of his latest project>

No. Prefeeding the directories with BCs is not possible. But both the things you're trying to do (calculated gradient AKA heatFlux and/or timelines) can be done with groovyBC/swak4Foam

homerun4711 June 7, 2011 14:24

Thanks for your answer!

groovyBC looks good.
akidess has already beaten the drums in another thread :)http://www.cfd-online.com/Forums/ope...tml#post310585

Kind regards,
Walter


All times are GMT -4. The time now is 08:49.