|
[Sponsors] |
[waves2Foam] Modified tutorial case 3Dwaves and isn't working as intended |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 10, 2014, 08:29 |
Modified tutorial case 3Dwaves and isn't working as intended
|
#1 |
New Member
enzhen zhang
Join Date: Dec 2013
Location: Shanghai,China
Posts: 10
Rep Power: 12 |
I ran the "3Dwaves" case. the only change I made is set Wind to (1 0 0 ). the boundary field Uy of wind is almost 0,but the internal field of wind near boundary is very differ!
the figure is attached. I think it's not the solver's but the boundary condition's problem, when i adopted groovyBC in interFoam case, I also came into the discontinuity problem. Does anyone know how to solve the problem? the boundary field,the upside Uy is 0. the internal Field,the upside Uy is not 0,especially some part have value up to 0.4 or low to -1 My object concern on the wind field upon the wave. I hope to get an natural wind field , not the corrected field with Utarget. the size of my computational zone is x*y*z=10m*7m*2m.at first, i set a relaxationZone from the inlet boundary. but after several seconds.the Uy diffused as: Code:
DILUPBiCG: Solving for Uy, Initial residual = 0.00810394, Final residual = 1.05103e+19, No Iterations 1001 the relaxationZone is set as Code:
relaxationNames ( inlet ); wind ( 1 0 0 ); initializationName inlet; inletCoeffs { waveType stokesFirst; Tsoft 0; depth 2.75; period 1; direction ( 1 0 0 ); phi 0; height 0.2; waveNumber (3.1415926 0 0); omega 6.28319; relaxationZone { relaxationScheme Spatialwater; relaxationShape Rectangular; beachType Empty; relaxType INLET; startX ( 0 0.7 0 ); endX ( 5 0.7 2 ); orientation ( 1 0 0 ); } } Code:
boundaryField { inlet { type zeroGradient; } outlet { type zeroGradient; } cyclic2 { type cyclic; } bottom { type slip; } atmosphere { type slip; } defaultFaces { type zeroGradient; } } Code:
boundaryField { inlet { type zeroGradient; } outlet { type zeroGradient; } cyclic2 { type cyclic; } bottom { type fixedValue; value uniform 1; } atmosphere { type fixedValue; value uniform 0; } defaultFaces { type empty; } } Code:
boundaryField { inlet { type zeroGradient; } outlet { type zeroGradient; } bottom { type slip; } atmosphere { type zeroGradient; } cyclic2_half0 { type cyclic; } cyclic2_half1 { type cyclic; } } Last edited by wyldckat; October 8, 2018 at 11:01. Reason: merged posts that were a few minutes apart; also changed title |
|
|
|