March 6, 2024, 18:44
|
How to access forces computed by "forces" functionObject within Solver
|
#1
|
New Member
Pedro Almeida
Join Date: Jul 2022
Posts: 1
Rep Power: 0
|
Hello,
I want to access the forces calculated by the "forces" function object within my solver. I can access the specific function object with:
Code:
label forcesId = runTime.functionObjects().findObjectID("forces")
With this I can access the functionObject, which allows me to call execute() and other functions. However, I cannot find how to access the forces from this point. Is there some way to do this from within the solver. Something like:
Code:
List<Field<vector>> myForces = runTime.functionObjects()[forcesId].<something here>
Alternatively, I can possibly calculate the forces manually with the velocity fields and mesh, but I would prefer to use the functionObject if possible. If there is any other recommendation, I would be happy to hear it.
Thank you for the help in advance,
Pedro
|
|
|