This would involve adding a normal vector to your pressure, so you can use code from Obtain velocity normal to boundary - #2 by dokken and multiply by pressure. Simply change the space to be a VectorFunctionSpace over DG-1 (as the pressure in normal direction only makes sense wrt. a given cell).
dokken
8
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Shear stress Calculation, converting a FEniCS code to FEniCSx | 8 | 1118 | November 21, 2022 | |
| Evaluate fluid shear stress similar to what they did in Von Mises stress | 10 | 838 | December 23, 2022 | |
| Mechanical equilibrium of a single finite element | 18 | 896 | May 8, 2024 | |
|
How to plot the pressure distribution on the airfoil surface
|
6 | 1420 | March 1, 2022 | |
| The application of ds() and assemble() to calculate the drag and lift coefficients of the flow around a cylinder | 5 | 448 | August 26, 2023 |