Calculating Torque
Hello I am farely new to OpenFoam. I am using OpenFoam 2.1
I am trying to use MRFSimpleFoam and calculate torque on a rotating body. I found this (http://openfoamwiki.net/index.php/ComputeTorque) program which is for OpenFoam 1.4. But since I am using version 2.1 I cannot compile it. Also I am not quite sure how to use that utility. I want to have torque printed during the simulation in every say 10 time steps or so. Any suggestion will be of very helpful for me. thanks in advance |
Greetings kingmaker,
I tested only with the second file: Quote:
The missing fix is to edit the file "Make/files" and use the following content instead: Code:
computeTorque.C Code:
wmake Bruno |
evaluating torque in VAWT simulation AMI region
Hi Bruno,
Could you explain, roughly, how this utility works? My programming background is weak at best. Are there any prerequisites required in the case files or setup for the tool to work? UPDATE: I tried to build it as you suggested above, for OpenFOAM 2.2.1. I got this error: Code:
$ wmake |
Hi Anand,
Quote:
Quote:
Code:
sudo apt-get install build-essential Bruno |
Excellent, successful compilation.
Quote:
There are no MRFZones files I can find in the tutorials for OpenFOAM 2.2.x, so I'm not entirely sure how to use it with my 2D AMI simulation. There's MRFProperties though - same idea? |
Hi Anand,
Quote:
Quote:
As for using MRF, you don't need AMI, since it uses a stationary mesh; but you will need a cellZone for indicating which cells are assigned to the MRF zone. The reference tutorials for each one are:
Best regards, Bruno |
Quote:
Quote:
|
Quote:
|
Quote:
Edit: well, I think I've got it figured out. Found out the section of code dealing with the file output and modified that to look closer to CSV format. :D |
All times are GMT -4. The time now is 15:53. |