|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Join Date: Jun 2017
Posts: 73
Rep Power: 9 ![]() |
Hi,
I would like to transform my force vectors to scalars directly in OpemFOAM while solving. I am using the following lines in my controldict to get the force vectors: Code:
forces_fixedWall { type forces; libs ("libforces.so"); writeControl timeStep; writetInterval 1; patches (fixedWall); pname p; Uname U; rhorhoInf; rhoInf 1; CofR (0 0 0); } Does anyone know how to do it? Greetings Friendly |
|
![]() |
![]() |
![]() |
![]() |
#2 | ||
Senior Member
|
Hi,
Assuming that your fixedWall patch does not rotate, one option would be to change the localSystem_ value in the forces.C code, but that would require some code reading and testing... Another simpler option, is to "hack" the drag coefficient by making it return the force values instead of the drag coefficient and feed it the direction(s) you are interested in as: Code:
liftDir (0 0 1); dragDir (1 0 0); Quote:
Quote:
Hope this helps, |
|||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ActuatorDiskExplicitForce in OF2.1. Help | be_inspired | OpenFOAM Programming & Development | 10 | September 14, 2018 11:12 |
Ploting Drag Force Vectors | camilo_costa | Fluent UDF and Scheme Programming | 3 | September 29, 2014 15:26 |
Access raw field data (scalars, vectors) on mesh | haakon | OpenFOAM Programming & Development | 3 | September 25, 2012 10:01 |
Force can not converge | colopolo | CFX | 13 | October 4, 2011 22:03 |
Force vectors for drag during sweeping motion | aamer | FLUENT | 0 | April 18, 2011 08:17 |