finite element in two layers

Dyuman Joshi ha marcado con alerta este/a pregunta
  • Marcado con alerta como No es adecuada para MATLAB Answers por Dyuman Joshi hace el 8 de Nov. de 2025.

    Looks like a homework question/project

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

7 comentarios

Torsten
Torsten el 8 de Nov. de 2025
Editada: Torsten el 9 de Nov. de 2025
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 el 10 de Nov. de 2025
This is true so i updated the file now it has 6 on 6.
Torsten
Torsten el 10 de Nov. de 2025
Editada: Torsten el 10 de Nov. de 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
ahmed el 12 de Nov. de 2025
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 el 14 de Nov. de 2025
Editada: Torsten el 14 de Nov. de 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
ahmed el 15 de Nov. de 2025
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 el 15 de Nov. de 2025
Maybe OPENFOAM is a starting point:

Iniciar sesión para comentar.

Respuestas (0)

Productos

Versión

R2025b

Preguntada:

el 8 de Nov. de 2025

Comentada:

el 15 de Nov. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by