MPh-py / MPh

Pythonic scripting interface for Comsol Multiphysics
https://mph.readthedocs.io
MIT License
265 stars 67 forks source link

Getting pressure for each element #117

Closed Armin268 closed 1 year ago

Armin268 commented 1 year ago

Hello,

I am working on a very simple CFD model based on "Laminar Flow" in COMSOL. In this model (as it has been represented in attached figures) I have 8 elements. I wish to get a pressure from COMSOL for each element in shape [ x, x, x, x, x, x, x] via Mph but after evaluation, I got a huge matrix for pressure. Is there any way to get an average pressure for the elements?

Thank You.
Screenshot 2023-02-13 124930 Screenshot 2023-02-13 125052 Screenshot 2023-02-13 125114

Armin268 commented 1 year ago

of course in shape [ x, x, x, x, x, x, x, x]. because I have 8 CFD elements.