How can I specify different PDE coefficients for different regions in a 3D geometry using PDE toolbox?

15 views (last 30 days)
I am using PDE toolbox. I have 4 closed 3D surfaces, one inside the other, I want to specify different PDE coefficients for elements in these four regions.
How can I implement this? I was planning to make use of "sub domain" (11th row of 't' in "[p,e,t] = meshToPet(model.Mesh);"). But all values in it was 1, hence my plan didn't work.

Answers (1)

Alan Weiss
Alan Weiss on 29 Jun 2015
Currently, subdomains are not supported for 3-D geometry. However, you can write coefficients in function form so that the coefficients have different values in different regions. This is not as convenient as having real subdomains, but as far as I know it is the only current workaround.
Alan Weiss
MATLAB mathematical toolbox documentation
  7 Comments
MarionJ
MarionJ on 12 Apr 2018
@Alan: Has future arrived, yet? Does the PDE-Package support coefficient definition dependent on the subdomains for 3D geometries?
Alan Weiss
Alan Weiss on 12 Apr 2018
The easiest way to find out is to read the release notes. There you will find a function that might help you do what you want: geometryFromMesh.
Alan Weiss
MATLAB mathematical toolbox documentation

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!