- Defining the geometry that includes the subdomain boundaries.
- Defining the coefficients that presumably vary from subdomain to subdomain.
(nonlinear) PDE problem domain internal boundary defined using mathematical expression
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I am trying to solve a nonlinear (elliptic) PDE over a rectangular problem domain divided into three subdomains where the subdomains are separated by (internal) boundaries that need to be defined using a mathematical expression.
Am I right in assuming that the PDE Toolbox GUI is not meant to handle expression-defined inner boundaries? If yes, would you be able to guide me as to how to proceed (e.g. demos of a similar type)?
Many thanks,
0 个评论
回答(1 个)
Bill Greene
2013-7-26
Hi,
There are two issues you have to consider in constructing your model:
The second issue can be dealt with in the pdetool GUI by entering the coefficient as a string expression that includes the variables x and y or by entering the name of a MATLAB function where the coefficients are calculated. However, I don't know how to define the geometry using mathematical expressions in the GUI. So I recommend you create your entire model and calculate the solution by calling the PDE Toolbox functions from a MATLAB script. All of the examples shown on the following documentation page take this approach:
Documentation for defining your own geometry can be found here: http://www.mathworks.com/help/pde/ug/pdegeom.html
Documentation for writing a function to define your coefficients can be found here: http://www.mathworks.com/help/pde/ug/scalar-coefficients-in-function-form.html
The following example shows a case where the coefficients vary by subdomain (but are linear): http://www.mathworks.com/help/pde/examples/deflection-of-a-piezoelectric-actuator.html
Extending this example to a case where the coefficients are also functions of the solution, u, should be straightforward.
Bill
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Geometry and Mesh 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!