Time-dependent boundary conditions
Dear Sir,
I would like to describe time-dependent boundary conditions using some different functions periodically. pattern 1: For example, as the boundary condition of U, 0 ~ 5s ... use a function f1(t) as a function of time 5 ~ 10s .... use another function f2(t) as a function of time 10 ~ 15s .... use another function f3(t) as a function of time 15 ~ 20s .... use another function f4(t) as a function of time pattern 2: 0 ~ 5s ... a face A as inlet (f1(t)), a face B as outlet (zeroGradient) 5 ~ 10s .... a face A as wall (fixedValue(0 0 0)), a face B as outlet (f2(t)) 10 ~ 15s .... a face A as outlet (zeroGradient), a face B as inlet (f3(t)) 15 ~ 20s .... a face A as outlet (f4(t)), a face B as wall (fixedValue(0 0 0)) Could you teach me how to describe the boundary conditions of above two patterns? Thank you in advance. Sincerely, KeiJun |
Hello KeiJun,
You can use of groovyBc utility from swak4Foam package. With groovyBc you are able to implement any variable boundary condition with time or position or many other thing. |
All times are GMT -4. The time now is 16:10. |