Answered

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...

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...

15 hours ago | 0

Answered

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 ...

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 ...

1 day ago | 0

Answered

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...

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...

5 days ago | 0

| accepted

Answered

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...

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...

5 days ago | 0

| accepted

Answered

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...

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...

19 days ago | 0

| accepted

Answered

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...

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...

20 days ago | 0

| accepted

Answered

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...

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...

22 days ago | 1

| accepted

Answered

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...

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...

23 days ago | 1

Answered

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...

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...

26 days ago | 0

| accepted

Answered

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...

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...

2 months ago | 0

| accepted

Answered

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...

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...

3 months ago | 0

| accepted

Answered

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...

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...

3 months ago | 0

| accepted

Answered

Radiation in PDE thermal model

To activate both radiation and convection on the same boundary, combine them into one assignment as: thermalBC(thermalmodel,'Fa...

Radiation in PDE thermal model

To activate both radiation and convection on the same boundary, combine them into one assignment as: thermalBC(thermalmodel,'Fa...

3 months ago | 0

| accepted

Answered

Temperature in a specific point with pde thermal

Yes! Check out the interpolateTemperature function.

Temperature in a specific point with pde thermal

Yes! Check out the interpolateTemperature function.

3 months ago | 0

Answered

How to specify initial conditions for two different subdomains in PDE solver?

I suggest you to look at the programmatic workflow, refer to the programmatic workflow overview doc page. In the programmatic ...

How to specify initial conditions for two different subdomains in PDE solver?

I suggest you to look at the programmatic workflow, refer to the programmatic workflow overview doc page. In the programmatic ...

3 months ago | 0

Answered

How to specify f coefficient function for arbitrarily located point sources within a domain.

If you want to use addtional arguments in computing f, then wrap the f coefficient function around the actual function that take...

How to specify f coefficient function for arbitrarily located point sources within a domain.

If you want to use addtional arguments in computing f, then wrap the f coefficient function around the actual function that take...

3 months ago | 0

Answered

Determine locations struct used in PDE solver

You can write that code that you indented to use to "create a matrix that is of length N by M where ..." in the function itself....

Determine locations struct used in PDE solver

You can write that code that you indented to use to "create a matrix that is of length N by M where ..." in the function itself....

3 months ago | 0

| accepted

Answered

Time-dependent thermal conductivity

Function should return values of k at all points requested by the solver, points are in the first argument. Update your funciton...

Time-dependent thermal conductivity

Function should return values of k at all points requested by the solver, points are in the first argument. Update your funciton...

3 months ago | 0

| accepted

Answered

Import of a 2D mesh created by Mesh2D or NodeLab into PDE Toolbox

You can import triangles in 2-D into PDE Toolbox using geometryFromMesh function. Although it creates geometry using the mesh da...

Import of a 2D mesh created by Mesh2D or NodeLab into PDE Toolbox

You can import triangles in 2-D into PDE Toolbox using geometryFromMesh function. Although it creates geometry using the mesh da...

5 months ago | 0

Answered

Usage of InternalHeatSource from PDE toolbox (Heat Transfer)

Value of internal hear source should be energy per unit volume. Are you sure your internalHeatSource command is getting executed...

Usage of InternalHeatSource from PDE toolbox (Heat Transfer)

Value of internal hear source should be energy per unit volume. Are you sure your internalHeatSource command is getting executed...

5 months ago | 0

Answered

Time-dependent internal heat source

You cannot add function handle as you have done, f+q in: specifyCoefficients(model,'m',0,'d',d,'c',c,'a',a,'f',f+q); I would r...

Time-dependent internal heat source

You cannot add function handle as you have done, f+q in: specifyCoefficients(model,'m',0,'d',d,'c',c,'a',a,'f',f+q); I would r...

5 months ago | 0

| accepted

Answered

How I introduce a matrix form of c coefficient in PDE equation using solvepde matlab command

Output of c coefficient function should be a matrix or column vector of appropriate size, where the number of columns correspond...

How I introduce a matrix form of c coefficient in PDE equation using solvepde matlab command

Output of c coefficient function should be a matrix or column vector of appropriate size, where the number of columns correspond...

5 months ago | 0

Answered

Efficient sensor placement optimization

Not sure if I understand your question correctly. Are you referring to location mesh nodes when you say sensor? My guess is you...

Efficient sensor placement optimization

Not sure if I understand your question correctly. Are you referring to location mesh nodes when you say sensor? My guess is you...

5 months ago | 0

Answered

Heat transfer question in pde toolbox

Yes, all the three properties can be defined as function of temperature. This will make the problem highly nonlinear, existance ...

Heat transfer question in pde toolbox

Yes, all the three properties can be defined as function of temperature. This will make the problem highly nonlinear, existance ...

6 months ago | 0

Answered

How can I resolve the error "PDE coefficients cannot be function of solution or time." in a static solution of a PDE.

What are the output arguments in you function call InterpolateDisplacement? [UVdispB, UVdispT, UVdispL, UVdispR]=InterpolateDis...

How can I resolve the error "PDE coefficients cannot be function of solution or time." in a static solution of a PDE.

What are the output arguments in you function call InterpolateDisplacement? [UVdispB, UVdispT, UVdispL, UVdispR]=InterpolateDis...

6 months ago | 0

Answered

How to create a copy of a pde model ?

Get hold of the handle that is provided as output, like: bc = applyBoundaryCondition(....) Now you can...

How to create a copy of a pde model ?

Get hold of the handle that is provided as output, like: bc = applyBoundaryCondition(....) Now you can...

6 months ago | 0

Answered

How to apply the boundary conditons to the mass and stiffness matrices?

Use the 'nullspace' as second argument, you will get matrices with BC imposed by eleminating dirichlet DoFs. Regards, Ravi

How to apply the boundary conditons to the mass and stiffness matrices?

Use the 'nullspace' as second argument, you will get matrices with BC imposed by eleminating dirichlet DoFs. Regards, Ravi

6 months ago | 0

| accepted

Answered

Cannot apply multiple, region-dependent thermal properties in PDE Toolbox

This is a bug where solver fails to distinguish the functions as seperate based on some queries. Workaround is to define variati...

Cannot apply multiple, region-dependent thermal properties in PDE Toolbox

This is a bug where solver fails to distinguish the functions as seperate based on some queries. Workaround is to define variati...

6 months ago | 1

Answered

How squareg works ?

Hi Pavel, I don't fully understand your question, but I can answer a portion on how to create square of different size. You can...

How squareg works ?

Hi Pavel, I don't fully understand your question, but I can answer a portion on how to create square of different size. You can...

6 months ago | 0

| accepted

Answered

PDE tool box, internal heat generation and BC conditions

If the problem is axisymmetric, then you need follow the approach similar to this example: https://www.mathworks.com/help/pde/...

PDE tool box, internal heat generation and BC conditions

If the problem is axisymmetric, then you need follow the approach similar to this example: https://www.mathworks.com/help/pde/...

7 months ago | 0