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

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

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

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

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

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

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

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

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

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

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

7 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

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

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

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

8 months ago | 0

Answered

How can i define PDE coefficient which is scalar matrix inside the boundary

Hi Kim, Is your ffunc depends on solution, i.e., using state.u? Can you provide sample data, also xv and yv? Regards, Ravi ...

How can i define PDE coefficient which is scalar matrix inside the boundary

Hi Kim, Is your ffunc depends on solution, i.e., using state.u? Can you provide sample data, also xv and yv? Regards, Ravi ...

8 months ago | 0

Answered

Boundary condition for multidomain geometry

Hi Urban, Would you be able to share your code and data? Geometric faces are identified by analyzing how drastic the normal ch...

Boundary condition for multidomain geometry

Hi Urban, Would you be able to share your code and data? Geometric faces are identified by analyzing how drastic the normal ch...

8 months ago | 0

Answered

Retrieving indices of times for a time-dependent system of PDEs within applyBoundaryCondition()

You need to create an interpolant object, see for example, griddedInterpolant. Construct interpolant (may be one for each N), an...

Retrieving indices of times for a time-dependent system of PDEs within applyBoundaryCondition()

You need to create an interpolant object, see for example, griddedInterpolant. Construct interpolant (may be one for each N), an...

9 months ago | 0

Answered

PDE Toolbox does not recognize subdomains in imported .stl geometry

STL with multiple bodies are imported as separate cells in PDE Toolbox. Essentially, the two cells are disconnected for analysis...

PDE Toolbox does not recognize subdomains in imported .stl geometry

STL with multiple bodies are imported as separate cells in PDE Toolbox. Essentially, the two cells are disconnected for analysis...

9 months ago | 0

| accepted

Answered

I find that the matlab official example "deflection-of-a-piezoelectric-actuator" cannot be correct

Hello Prof. Ciavarella, Can you provide a bit more details, reproduction code and expected results, of the modified setup to i...

I find that the matlab official example "deflection-of-a-piezoelectric-actuator" cannot be correct

Hello Prof. Ciavarella, Can you provide a bit more details, reproduction code and expected results, of the modified setup to i...

9 months ago | 0

| accepted

Answered

What is the best way to fit parameters in the pdesolver to a set of datapoints?

You might need to use Optimization Toolbox in conjunction with PDE Toolbox to setup the objective function and constraints. Woul...

What is the best way to fit parameters in the pdesolver to a set of datapoints?

You might need to use Optimization Toolbox in conjunction with PDE Toolbox to setup the objective function and constraints. Woul...

9 months ago | 0

Answered

plese help me solve this

You can use PDE Toolbox to solve this kind of heat transfer problem. Refer to the documentation on Heat Transfer problem setup i...

plese help me solve this

You can use PDE Toolbox to solve this kind of heat transfer problem. Refer to the documentation on Heat Transfer problem setup i...

9 months ago | 0

Answered

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

Hi Rubem, ThermalModel crated using thermalmodelS=createpde('thermal') lets you set up the problem in deomain specific funct...

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

Hi Rubem, ThermalModel crated using thermalmodelS=createpde('thermal') lets you set up the problem in deomain specific funct...

9 months ago | 1

| accepted

Answered

evaluateGradient missing from pde toolbox

Hi Heidi, You need to have a results object in the workspace to access evaliuateGradient on the MATLAB path. Run any PDEModel ...

evaluateGradient missing from pde toolbox

Hi Heidi, You need to have a results object in the workspace to access evaliuateGradient on the MATLAB path. Run any PDEModel ...

9 months ago | 0

| accepted

Answered

pde themral model, thermally connect two cells

Hi Derek, Multidomains in the imported geometry, using STL file, are not recoganized as connected cells of the same geometry. ...

pde themral model, thermally connect two cells

Hi Derek, Multidomains in the imported geometry, using STL file, are not recoganized as connected cells of the same geometry. ...

10 months ago | 0

Answered

Simple compression of cylinder- results of finite element model don't make sense

Hi Clay, Your BCs are correct. I think the load you are applying is resulting in very small defomration. This is causing the d...

Simple compression of cylinder- results of finite element model don't make sense

Hi Clay, Your BCs are correct. I think the load you are applying is resulting in very small defomration. This is causing the d...

10 months ago | 0

| accepted

Answered

error in heat transfer example

Hi Charlie, What version of MATLAB are you running R2018a or R2018b. In any case, you should not see this error if you run t...

error in heat transfer example

Hi Charlie, What version of MATLAB are you running R2018a or R2018b. In any case, you should not see this error if you run t...

10 months ago | 0

| accepted

Answered

PDE Toolbox: Using different temperature-dependent thermal conductivities

I did not realize this in my initial response, both of your k values goes to inf when u=0. Try the following following instead, ...

PDE Toolbox: Using different temperature-dependent thermal conductivities

I did not realize this in my initial response, both of your k values goes to inf when u=0. Try the following following instead, ...

10 months ago | 0

Answered

PDE Toolbox: Using different temperature-dependent thermal conductivities

Both k1 and k2 yields zero when state.u = 0, this is causing solver to misinterpret them as same functions. You can get around t...

PDE Toolbox: Using different temperature-dependent thermal conductivities

Both k1 and k2 yields zero when state.u = 0, this is causing solver to misinterpret them as same functions. You can get around t...

10 months ago | 0

Answered

nonzero m and d coefficients for Matlab PDE

Refer to this documentation: https://www.mathworks.com/help/pde/ug/pde.pdemodel.specifycoefficients.html#bu7pwf5 d has to be a...

nonzero m and d coefficients for Matlab PDE

Refer to this documentation: https://www.mathworks.com/help/pde/ug/pde.pdemodel.specifycoefficients.html#bu7pwf5 d has to be a...

11 months ago | 0

| accepted