criteria to assign physical properties at each nodes of a 3d model

1 次查看(过去 30 天)
Hi, I'm building a 3d geological model (i.e. two layers). I would assign at each node of the model a physical property (e.g. thermal conductivity as I'm building a thermal model) taking into account the two different lithologies. The boundary between the bottom of the first layer and the top of the second one is defined by a surface (e.g. a plane). First, I defined the volume of the model:
[X,Y,Z] = meshgrid(287800:50:297800.000000,4167350:50:4177750,0:50:5000);
Second, I defined the layer boundary (in this example I supposed it's a plane but it will be a irregular surface described by its x,y,z coordinates):
[xi,yi] = meshgrid(287800:50:297800.000000,4167350:50:4177750);
zi = xi .* 0.9e-03 + yi .* 0.3e-03;
To assign at each node of the first layer a selected preperty I think I need to use index operations of the type
for i = 1:209
for j = 1:201
for k = 1:zi
th(i,j,k) = 2.5
end
end
end
but written like that, it's wrong. Any suggestion?
Thanks
Gianluca

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by