MATLAB: How to change from dirichlet to newman conditions in a thermal model using PDE

dirichletheat transfer

Hello,
I am using DPE toolbox to simulate the heat conduction between different materials. Once created the model, drawn the geometry and specified the Boundary conditions (ThermalBC) and the material properties I want to change the Boundary conditions to observe the differences but I do not find the way to specify Dirichlet or Newman conditions.
If I create the model using the 'thermal' option (thermalmodelS=createpde('thermal'), the suposed method to do it ( applyBoundaryCondition(thermalmodelS,'dirichlet','Edge',8,'u',200)) is not working. However if I create the model with: "thermalmodelS=createpde " and do not specify 'thermal/structural…" , then, the command "applyBoundaryCondition" works.
How can I select Dirichlet or Newman once having created the Thermal Model?
Thanks for your cooperation.

Best Answer

Hi Rubem,
ThermalModel crated using thermalmodelS=createpde('thermal') lets you set up the problem in deomain specific functional interfaces. In thermaBC specifying 'Temperature' is a DirichletBC, all other forms of heat flux, specified using 'HeatFlux', 'ConvectionCoefficient', etc are Neumann BC. You can explore all the methods of thermalmodelS by calling methods(thermalmodelS) in the MATLAB Command Window.
PDE Toolbox also supports general equations based inteface, for which you can craete the analysis model without specifying physics type in the createpde function, like you tried. This model supports mathematical interface for boundary conditions. You can see the methods available for equaiton based using the methods function again.
Regards,
Ravi