finite element in two layers

What should the finite element Matlab code look like in order to solve such a PDE in two layers?

7 件のコメント

Torsten
Torsten 2025 年 11 月 8 日
編集済み: Torsten 2025 年 11 月 9 日
You have 7 equations in 6 unknowns. Thus one of the equations must be superfluous - most probably because pressure is missing as a solution variable.
ahmed
ahmed 2025 年 11 月 10 日
This is true so i updated the file now it has 6 on 6.
Torsten
Torsten 2025 年 11 月 10 日
編集済み: Torsten 2025 年 11 月 10 日
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
ahmed 2025 年 11 月 12 日
I'm attempting to modify the problem in the attachment, and I anticipate that the FEM in Matlab code will be an effective method for this geometry.
Torsten
Torsten 2025 年 11 月 14 日
編集済み: Torsten 2025 年 11 月 14 日
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
ahmed 2025 年 11 月 15 日
Thank you for your feedback — I really appreciate your perspective. Yes, the goal is to generate an unstructured mesh for the geometry and solve the coupled fluid–thermal equations using FEM. I understand that it’s challenging, but I’m optimistic. Even if existing packages don’t directly support multilayer interface conditions, it should still be possible to build a simplified or custom implementation by extending known techniques (e.g., multi-domain meshing, weak interface enforcement, or penalty-based coupling).
Torsten
Torsten 2025 年 11 月 15 日
Maybe OPENFOAM is a starting point:

サインインしてコメントする。

回答 (0 件)

製品

リリース

R2025b

質問済み:

2025 年 11 月 8 日

コメント済み:

2025 年 11 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by