|
[Sponsors] |
June 9, 2013, 10:34 |
Calculating Torque
|
#1 |
New Member
Aditya
Join Date: May 2013
Location: Munich Germany
Posts: 29
Rep Power: 13 |
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 |
|
June 9, 2013, 16:47 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 MRFZoneDrg.C MRFZonesDrg.C EXE = $(FOAM_USER_APPBIN)/computeTorqueMRF Code:
wmake Bruno
__________________
|
||
July 26, 2013, 01:36 |
evaluating torque in VAWT simulation AMI region
|
#3 |
Member
Anand Lobo
Join Date: Jun 2013
Posts: 56
Rep Power: 13 |
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 /opt/openfoam221/wmake/wmake: 222: /opt/openfoam221/wmake/wmake: make: not found /opt/openfoam221/wmake/wmake: 223: /opt/openfoam221/wmake/wmake: make: not found wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /home/admin/Documents/computeTorqueMRF Last edited by Boloar; July 26, 2013 at 05:26. Reason: update |
|
August 18, 2013, 13:00 |
|
#4 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Anand,
Quote:
Quote:
Code:
sudo apt-get install build-essential Bruno
__________________
|
|||
August 19, 2013, 06:44 |
|
#5 | |
Member
Anand Lobo
Join Date: Jun 2013
Posts: 56
Rep Power: 13 |
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? |
||
August 19, 2013, 13:41 |
|
#6 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|||
August 20, 2013, 01:50 |
|
#7 | |
Member
Anand Lobo
Join Date: Jun 2013
Posts: 56
Rep Power: 13 |
Quote:
I'm looking at the MRF tutorials already, and my rotating AMI simulation is up and running. It's how to combine the two that I'm trying to figure out, so I can figure out the torque in the rotating region. |
||
August 21, 2013, 11:42 |
|
#8 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
__________________
|
||
August 22, 2013, 02:07 |
|
#9 | |
Member
Anand Lobo
Join Date: Jun 2013
Posts: 56
Rep Power: 13 |
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. Last edited by Boloar; August 22, 2013 at 04:11. |
||
Tags |
mrfsimplefoam, openfoam 2.1, torque |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calculating Torque | tripa58 | CFX | 1 | October 28, 2010 19:10 |
Calculating torque | beejois | FLUENT | 2 | March 12, 2010 02:22 |
calculating torque | shawn123 | STAR-CCM+ | 3 | January 23, 2010 22:32 |
Calculating torque | Andrew | FLUENT | 5 | September 4, 2007 12:10 |
How to update polyPatchbs localPoints | liu | OpenFOAM Running, Solving & CFD | 6 | December 30, 2005 18:27 |