I am trying to create a rectangular channel with walls on the boundaries N and S.
I'd like set an inflow on the W side that come out of the channel through the E side: to do this I have used ana_m3obc.h where I have set the following values:
Code: Select all
#if defined CHANNEL
# ifdef WEST_M3OBC
IF (WESTERN_EDGE) THEN
DO k=1,N(ng)
DO j=JstrR,JendR
BOUNDARY(ng)%u_west(j,k)=1.0_r8
BOUNDARY(ng)%v_west(j,k)=0.0_r8
END DO
END DO
END IF
# endif
Code: Select all
#define NORTHERN_WALL
#define SOUTHERN_WALL
#define WEST_FSRADIATION
#define WEST_M2RADIATION
#define WEST_M3CLAMPED
#define WEST_TGRADIENT
#define EAST_FSRADIATION
#define EAST_M2RADIATION
#define EAST_M3CLAMPED
#define EAST_TCLAMPED
but this setting must have wrong something because the result is the velocity field very different than the imposed conditions:
initially 'u' has the imposed initial values but soon it begins to change the scroll ( before 'u' is toward E, then 'u' is toward W, then toward E , and so..)until after 1000 sec about of simulation 'u' is close to 0.Why?
Has someone a suggestion for my cpp options about boundary condiction?
Thank you much,
Maria