How to get force on a wall from the wind
2 Attachment(s)
Hi,
I run the example windAroundBuildings. I now have the U (x, y, z) and p. My question is simple : how can I have the pressure on the wall ? I try to use the x projection of the pressure. But on the wall, the pressure is vertical so I don't have any horizontal effort. Can you explain me how can I compute the pressure on the wall ? I'm civil engineering, not a physician so maybe it's a formula I don't know. Thanks for any advice, Vincent |
Hi bansan,
I would recommend you to use "forces" function object and you can get the force on the patches directly and write it as a field. for Openfoam v2006 : https://www.openfoam.com/documentati...es-forces.html for Openfoam V8 : https://cpp.openfoam.org/v8/classFoa...1_1forces.html example video: https://youtu.be/LFn7ti4nCm8 |
Thanks, it's almost what I wanted. But instead of the sum, do you know if it's possible to have the force in each node of the mesh ?
|
A found a trick to get force at every point.
In file src/functionObjects/forces/forces/forces.C, in function void Foam::functionObjects::forces::applyBins, I add Code:
forAll(fN, i) It's a hack but that do the job. Thanks again for your help. :) |
Glad to help, best wishes:)
|
All times are GMT -4. The time now is 10:28. |