How i can write transient condition in a pde thermal model?
Example: If you want to write y^2 - 2*t^2, you write: handlename=@(region,state) region.y.^2 - 2 * state.time^2 Yes, if it de...

How can I solve 2D transient diffusion equation with nonlinear source term?
I don't see any interaction between species being defined by the stated PDEs. You can define coefficients usng PDEModel workflo...

Please use one the newer workflow like general equation based one, Structural or Thermal one. Once you setup your model in one ...

| accepted

Haw can I use the PDE toolbox to model isotropic thermal expansion?
The latest version of MATLAB has the capabality to solve for thermal expansion and thermal stress by specifying temperature as a...

| accepted

capability pde toolbox, 3d application heat transfer
If your 3-D model that you discretize involve only cubes then you can model this in PDE. For example see attached image: Yo...

| accepted

Defining non-constant Neumann Boundary Conditon
You do not need to model the interface BC explicitly. This condition should be automatically satisfied in the solution. Regard...

PDE Toolbox - Convection in Diffusion Equation
It looks like your function errored without returning one onput. Most likely the error could have been due to 'va' being out of...

| accepted

How to integrate PDE solution in 2D space?
If you are solving a single PDE, i.e., you used createpde(1) then you need to specify time-steps as the last argument. If you ha...

| accepted

How to set boundary conditions?
If you are using PDE Toolbox, then you have to create all those edges, and then you would be able to do it. Refer to the documen...

| accepted

3D Multi-Domain PDE Modelling
Thanks for taking time to explain the problem with such a detail and for providing the reproduction code. I tried to understand ...

| accepted

How to plot DiscreteGeometry objects
Looks like you are overwriting the plot in a loop. If you want to plot multiple figures then you insert: figure command before p...

Error While exporting data to workspace.
You can export solution by selecting menu option: Solve> Export Solution This would export the solution as 'u' variable to wor...

Use of "region" and "state" in PDE models with variable coefficients.
Hi Allen, Solver passes two input arguments to the function that you define, "region" and "state" are just place holder names....

| accepted

Import a 2D STL File
Hi Matthias, Your geometry in the STL file is indeed 3-D. I am assuming you want just the one of the flat faces for two 2-D an...

| accepted

Import a 2D STL File
The keyword here is "planar". Is your geomtry planar? Regards, Ravi

Thermal simulation with Nodal Temperature Initial Condition
Couple of options: You can use a function to define the temperature, which you can specify to thermalIC as function_handle. Y...

PDE toolbox and load on nodes
OK, in that case can you number the number of verteices in the model: >> gm Do you see the new VertexID in the plot you make? ...

PDE toolbox and load on nodes
The function addVertex was introduced in R2019b. You might be running an older version of the MATLAB to get this error. Regard...

| accepted

PDE Toolbox: Constant external heating on 4 sides of a Cylinder
Hi Pascal, If there is no axial variation, then I suggest using a 2-D crosssecion to solve the problem. In 2-D you can easily ...

| accepted

EvaluateHeatRate Matlab PDE units and discussion
evaluateHeatRate returns the value of heat flux integrated our the specified face. So its unit would be unit of enery, if everyt...

| accepted

How can I modify the default options (like RelTol' and 'AbsTol') of the pde solver when using the PDE toolbox?
You can edit those tolerances directly using the model object properties. Say, model = createpde(... User model the set RelTo...

| accepted

Question on using geometryFromMesh
It looks like the node IDs from COMSOL might be 0 based. That is first node ID in COMSOL may be 0, in MATLAB it must be 1. You c...

| accepted

Time dependent external heat flux in PDE Toolbox
Hi Pascal, You are on the right track, refer to the externalHeatFlux in the example: https://www.mathworks.com/help/pde/ug/h...

| accepted

Unexpected Result for 3-D Thermal Transient Analysis of Heat sink using PDE Solver Toolbox
Here is the correct results using the new STL after fixing two more inconsitencies: Radiation problem should include temperatu...

| accepted

Unexpected Result for 3-D Thermal Transient Analysis of Heat sink using PDE Solver Toolbox
Hello Jake, You seem to have unit mismatch in the MATLAB model. PDE Toolbox doesn't have any units. When you exported the geom...

Solving 2D Convection Diffusion Equation
You might be able to setup the 2-D version using PDE toolbox. Take look at the following code. Please verify I have accuratly ca...

| accepted

Solving PDE for Hygromechanical Coupling with f coefficient as a function of previous PDE results
You should be all set if you replace the last two lines in your function with the following one line: fx = [gradx.'.*coefRGx;gr...

| accepted

Error using deval in pde toolbox
Hi SS, The warning: Warning: Failure at t=1.307250e+00. Unable to meet integration tolerances without reducing the step size...

| accepted

Temperature-dependent boundary conditions
Do you have PDE Toolbox in your installed products list? You can check this by executing 'ver' at the command prompt. If so, di...