velocity cyclic BC-groovyBC
Hi,
1 How to set a fixedvalue of velocity to the cyclic BC? 2 But the pressure is not cyclic, how to set a fixedgradient of pressure? --> FOAM FATAL IO ERROR: inconsistent patch and patchField types for I want to set the following fixedvalue using groovyBC. How to do that? inlet { type cyclic; type groovyBC; //type fixedValue // log-law expression uniform (0 0 0); variables "u_f=0.23;z0=0.9;z_f=pos().z-10;vel=u_f*log(z_f/z0);"; valueExpression "vector (vel,0,0)"; } outlet { type cyclic; type groovyBC; //type fixedValue // log-law expression uniform (0 0 0); variables "u_f=0.23;z0=0.9;z_f=pos().z-10;vel=u_f*log(z_f/z0);"; valueExpression "vector (vel,0,0)"; } |
i think its impossible, you should write your BC, with existing BC you can not!
|
But I have installed the groovyBC. You mean I should write another BC? I donot know how to do that.
1 How to set a fixedvalue of velocity to the cyclic BC (inlet and outlet)? 2 But the pressure is not cyclic, how to set a fixedgradient of pressure? |
i think you should write new BC
however try this, may be it works 1) use funkySetFields and define your velocity function in whole domain at time 0 2) uses a fan boundary condition with one constant ( constant value is the fixed pressure gradient * pipe length) |
Quote:
|
Quote:
Could you give me some idea of how to set fixedValue and zeroGradient for cyclic inlet and outlet patches respectively? Is it possible to achieve that? Best regards, Jian |
All times are GMT -4. The time now is 15:42. |