CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   groovy BC time dependent outlet velocity (easy) (https://www.cfd-online.com/Forums/openfoam-pre-processing/225805-groovy-bc-time-dependent-outlet-velocity-easy.html)

joshmccraney April 8, 2020 15:17

groovy BC time dependent outlet velocity (easy)
 
Hi FOAMers

I implemented a time-dependent velocity condition at a boundary. From the /U directory, it looks like this

Code:

    outlet
    {
        type groovyBC;
        valueExpression "vector(0,Um*time(),0)";
        variables "Um=100;ome=2*pi/5.5;";
        timelines ();
        value uniform (0 -1 0);
    }

A few questions: what does the vaue uniform (0 -1 0) mean?

This code takes significantly longer than if I use a standard outlet condition of uniform speed -1 (not time dependent). I think the code would run faster if instead of using each timestep I instead used every nth timestep. How can I do this?

EDIT: Actually, nevermind, I think I'll go in a complete different direction here. Don't know how to delete post?


All times are GMT -4. The time now is 07:22.