Hello,
the following code gives 6 faces. I want to add a space-varying boundary condition for one face (F6). I think it is not possible to use applyBoundaryCondition(). How can I divide face F6 into small slices to specify constant boundary conditions for each of them?
Many thanks
Stephan
% Create a 3-dimensional PDE Model
model = createpde(3);% Construct the Geometry
[x,y,z] = meshgrid([-3:0.25:3],[-2:0.25:2],[-1:0.25:1]);% Create the convex hull.
x = x(:);y = y(:);z = z(:);K = convhull(x,y,z);% Put the data in the correct shape for |geometryFromMesh|.
nodes = [x';y';z'];elements = K';% Create a PDE model and import the mesh.
geometryFromMesh(model,nodes,elements);% Plot geometry
figurepdegplot(model,'FaceLabels','on')title('Bracket with Face Labels')
Best Answer