finite element in two layers
Show older comments
This question was flagged by Dyuman Joshi
What should the finite element Matlab code look like in order to solve such a PDE in two layers?
7 Comments
ahmed
on 10 Nov 2025
Since you have second-order PDEs for U and V, only one transmission condition for U at y = 0.8 (U1 = U2) is not sufficient. As for theta, you need a second condition connecting dU1/dy and dU2/dy.
And what is the domain on which you want to solve your equations ? What are the conditions on the outer boundaries ((x = 0, ymin <= y <= ymax) and (x = 1, ymin <= y <= ymax) and (0 <= x <= 1, y = ymin) and (0 <= x <= 1, y = ymax)) ?
Maybe you could also explain what the variables U, V and Theta mean and what you try to model.
ahmed
on 12 Nov 2025
After taking a look at the article, I'm no longer sure what you are asking for. Do you intend to write code for generating unstructured tetrahedral meshes for the complex geometry and to solve the fluid dynamic equations using the finite element method on it ? I think you have no chance to succeed if you can't start from an existing similar code (which I'm not aware of). Even fluid dynamic software packages like ANSYS don't have the capability to solve on different layers with prescribed interface conditions.
ahmed
on 15 Nov 2025
Torsten
on 15 Nov 2025
Maybe OPENFOAM is a starting point:
Answers (0)
Categories
Find more on Geometry and Mesh in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!