- 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 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Bill Greene
el 26 de Jul. de 2013
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 comentarios
Ver también
Categorías
Más información sobre Geometry and Mesh en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!