|
[Sponsors] |
June 28, 2012, 13:47 |
Specific OpenFOAM Code
|
#1 |
New Member
Paul B. Huter
Join Date: Jun 2012
Posts: 8
Rep Power: 14 |
I would like to extract some code from OpenFOAM, but I'm not quite sure which code I need. I have looked through OpenFOAM documentation, but it's not that helpful. I am trying to JUST calculate aerodynamic coefficients. I've seen one post in this forum, but it does not actually reach a conclusion, and it does not talk about pulling out specific code. I want lift and drag coefficients, as well as moment coefficients (if available). I'm sure I'll need more than just the code for calculating coefficients, so any help about just basic classes/functions that I need will be appreciated.
Thanks. |
|
June 28, 2012, 14:13 |
Update
|
#2 |
New Member
Paul B. Huter
Join Date: Jun 2012
Posts: 8
Rep Power: 14 |
Ultimately, I want to be able to calculate the forces and moments (in all three axes), and as I'm looking through the OpenFOAM code, I'm seeing that it is calculating forces, then calculating coefficients. If someone who has looked deeper into the code takes a look at this, and is willing to help me out - what functions/classes do I need to pull out of OpenFOAM to be able to calculate the forces and moments (in all three axes)?
Thanks a bunch. |
|
June 28, 2012, 14:23 |
|
#3 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
im afraid you can not find what you want, because OpenFOAM, is an integrated code, so usually calculation of a coefficient, may get possible by upper and different classes, so you need to have the whole package by it self
|
|
June 28, 2012, 14:26 |
|
#4 |
New Member
Paul B. Huter
Join Date: Jun 2012
Posts: 8
Rep Power: 14 |
Do you know if I can just calculate the forces/moments (see my above "update")?
|
|
June 28, 2012, 18:21 |
|
#5 |
Senior Member
|
Yes you can. Have you looked at the motorbike tutorial?
|
|
June 28, 2012, 18:24 |
|
#6 |
New Member
Paul B. Huter
Join Date: Jun 2012
Posts: 8
Rep Power: 14 |
Do you have a link to the motorbike tutorial? Also, is it just using OpneFOAM, or will I be able to extract out code to use elsewhere?
Thanks. |
|
June 28, 2012, 18:27 |
|
#7 |
Senior Member
|
It is within the tutorial folder. WHat do you mean with extracting the code? What would you use it for?
|
|
June 28, 2012, 18:35 |
|
#8 |
New Member
Paul B. Huter
Join Date: Jun 2012
Posts: 8
Rep Power: 14 |
If I wanted to include OpenFOAM code (under GPL) in a program I am writing, but all I want to do is calculate the aerodynamic forces and moments on a body.
|
|
June 29, 2012, 03:57 |
|
#9 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
It is a bit vague what you want. Are you writing your own CFD-code and do you just want to see how it is implemented in OpenFOAM, or do you want your program to interactively communicate with OpenFOAM?
|
|
June 29, 2012, 08:23 |
|
#10 |
New Member
Paul B. Huter
Join Date: Jun 2012
Posts: 8
Rep Power: 14 |
I am not writing a full-up CFD program (that is beyond the scope of my project), however I do want to have a standalone program that includes some of the functionality of OpenFOAM, so I do not want to communicate to OpenFOAM. Right now, I know that I need to calculate the aerodynamic forces and moments on a body, although later I may need something else.
|
|
June 29, 2012, 09:40 |
|
#11 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
So what kind of data do you have? Is it OpenFOAM-data? What do you mean by stand-alone? You know that OpenFOAM provides a lot of seperate utilities and solvers? It is not just one 'program'.
|
|
June 29, 2012, 09:57 |
|
#12 |
New Member
Paul B. Huter
Join Date: Jun 2012
Posts: 8
Rep Power: 14 |
I did not know that there were separate utilities and solvers. I found a piece of code that calculates forces/moments (calcForcesMoments is the name of the function), but obviously there is a lot that goes into it, and a lot that it interacts with, which I don't quite understand. I realize that OpenFOAM is complicated and that some pieces rely on multiple other pieces to work, I was just hoping someone knew of a way to pull out the code necessary to calculate the aerodynamic forces and moments (i.e. what code within OpenFOAM I would use, including everything linked/required, to calculate). If not, that's fine.
|
|
June 30, 2012, 08:27 |
|
#13 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@pbhuter: whether you like it or not, OpenFOAM is a massive toolbox, not a recipe book Have you checked the cfd-online wiki? http://www.cfd-online.com/Wiki/Main_Page - there you might find the calculations you're looking for. Otherwise, it's rather complicated to strip code from OpenFOAM, given its intricate system of templates and classes and in some cases, interlocking with the class fields and mesh themselves. If your application already has its own CFD capabilities, then you probably will have to find the base equations from books or wikis and code things yourself. Those equations might be present in OpenFOAM, but they will either be oversimplified like this: Quote:
So perhaps you should rethink what your question really is! Good luck! Bruno
__________________
|
||
June 30, 2012, 20:06 |
|
#14 |
New Member
Paul B. Huter
Join Date: Jun 2012
Posts: 8
Rep Power: 14 |
I appreciate all the help. I have a book on order from Amazon that I hope will help me solve my problems.
|
|
Tags |
code selection, coefficients |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM Foundation Releases OpenFOAMŪ Version 2.1.1 | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | May 31, 2012 10:07 |
OpenFOAM for subsurface flow, or coupling with a subsurface flow code? | chljl | OpenFOAM Running, Solving & CFD | 0 | February 14, 2012 20:38 |
get OpenFOAM source code | Ahmed Khattab | OpenFOAM | 2 | February 9, 2012 05:48 |
Design Integration with CFD? | John C. Chien | Main CFD Forum | 19 | May 17, 2001 16:56 |
What is the Better Way to Do CFD? | John C. Chien | Main CFD Forum | 54 | April 23, 2001 09:10 |