How to create the two-layer grid?

I find codding but in my mind it's not explained clearly that it is two layers.
%%Create the grid: a simple cartesian grid, 100m x 100m and 50 blocks on x
% and y directions.
% Two layer grid
x_size = 100;
y_size = 100;
z_size = 1;
Nx = 20;
Ny = 20;
Nz = 1;
G = cartGrid([Nx Ny Nz],[x_size y_size z_size]);
G = computeGeometry(G);
figure(1)
plotGrid(G);view(3);

답변 (1개)

KSSV
KSSV 2017년 11월 8일

0 개 추천

%%simple cartesian grid
L = 100 ; B = 100 ;
nx = 50 ; ny = 50 ;
x = linspace(0,L,nx) ;
y = linspace(0,B,ny) ;
[X,Y] = meshgrid(x,y) ;
mesh(X,Y)
%%Two layer grid
Z1 = zeros(size(X)) ;
Z2 = ones(size(X)) ;
figure
hold on
surf(X,Y,Z1)
surf(X,Y,Z2)

댓글 수: 3

KSSV
KSSV 2017년 11월 8일
Vaya puta commented: actually, i want to make assume that grid is the reservoir, so I need cells and faces. like codding that I found (Finite Volume Methode) but that codding not represented 2 layer grid. any idea?
KSSV
KSSV 2017년 11월 8일
Why don't you show a pictorial example of what you want?
vaya putra
vaya putra 2017년 11월 8일
here is the sample that i want.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Decision Logic에 대해 자세히 알아보기

태그

질문:

2017년 11월 8일

댓글:

2017년 11월 8일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by