I'm trying to run the following code to solve 3D PDE on a unit cube usind pdetool functions. I've got two error messeges
1- Error using pde.ThermalMaterialAssignment/checkThermalConductivitySize
Incorrect ThermalConductivity size.
2- Unrecognized function or variable 'applyBoundaryCondition'.
model = createpde('thermal', 'steadystate');
gm = multicuboid(L, L, L);
pdegplot(model,"FaceLabels","on","FaceAlpha",0.5)
K = [2 1 0; 1 3 0; 0 0 1];
f = @(location, state) 1;
thermalProperties(model, 'ThermalConductivity', K);
model.SolverOptions.RelativeTolerance = 1e-6;
model.SolverOptions.AbsoluteTolerance = 1e-6;
applyBoundaryCondition(model,"dirichlet", ...
"Face",1:6,"u",0);
Unrecognized function or variable 'applyBoundaryCondition'.
generateMesh(model, 'Hmax', 0.1);
pdeplot3D(model, 'ColorMapData', u);
title('Solution to the 3D Anisotropic Poisson Equation');