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