1 /*--------------------------------*- C++ -*----------------------------------*\
3 | \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
4 | \\ / O peration | Version: 1.6-ext |
5 | \\ / A nd | Web: www.extend-project.de |
6 | \\/ M anipulation | |
7 \*---------------------------------------------------------------------------*/
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17 dimensions [0 1 -1 0 0 0 0];
19 // Re = 1 = rho=(rho U H)/mu; rho=1.144, mu=1.861e-5; H=0.01
20 internalField uniform (1.62589e-4 0 0);
28 variables "relax=0.7;UTarget=1.62589e-4;Uout@outlet=sum((pos().y) > 0.1 ? mag(U)*mag(Sf()) : 0.)/sum(pos().y > 0.1 ? mag(Sf()) : 0);Uold=mag(U);Uo=(Uout>1e-7 ? Uout : 1e-7);Unew=Uold*((1-relax)+relax*(UTarget/Uo));Unew2=(Unew > UTarget ? UTarget : Unew);";
29 valueExpression "vector(1,0,0)*Unew2";
35 inletValue uniform (0 0 0);
36 value uniform (0 0 0);
41 value uniform (0 0 0);
46 value uniform (0 0 0);
50 // ************************************************************************* //