|
[Sponsors] |
April 23, 2014, 02:35 |
Fan in OpenFOAM 2.3.0
|
#1 | ||
New Member
Join Date: Mar 2014
Posts: 3
Rep Power: 12 |
Hi all,
I'm endeavouring to simulate the flow through a duct (with simpleFoam). The duct has a fan pulling air through it, which I'm trying to simulate with a cyclic-type fan. At this stage I'm content with doing so in a 2D context. I used Gmesh to build the duct cross section and extrude it (adding a planar surface to serve as my fan patch). My first mistake was using a setup for the boundary and 0 files I found in an old tutorial that ceased to be relevant when version 2.0 changed the way you set up cyclic patches; when I went to run the simulation it asked if I wanted to run foamUpgradeCyclics, to automatically convert my files to the new form. I did that, and it altered my boundary file and all the files in 0, saving backups of the old ones. So far so good. However, when I went to run the simulation, I got a fatal error: Quote:
Is there some way I can edit the (thankfully backed up) old p file to reflect the new nature of the cyclic system? This is how the old (obsolete) p looks: Quote:
|
|||
April 25, 2014, 03:58 |
|
#2 |
New Member
Join Date: Mar 2014
Posts: 3
Rep Power: 12 |
Nobody has any ideas?
Surely someone must've had cause to implement some kind of pressure gradient in the latest version of openFOAM. Is there any documentation I can consult...? Any more information I can provide...? |
|
June 7, 2014, 22:57 |
|
#3 |
New Member
Wai Phyo Kyaw
Join Date: May 2014
Posts: 2
Rep Power: 0 |
Dear Puglin,
I am a beginner for OF, but I think I made a little modification to fan tutorial. In 0/p, 0/u, 0/k and 0/epsilon, and in the system/fvSchemes too. It worked for me. but I am afraid I have no idea it is right or wrong. Anyway I attached the modified zips. hOpe it will work for you too. |
|
July 7, 2014, 16:35 |
|
#4 |
Member
Thorsten Grahs
Join Date: Oct 2009
Posts: 61
Rep Power: 16 |
Dear Puglin,
you find the use of the fan b.c for 2.3 f.i. in the tutorial ./incompressible/pimpleFoam/TJunctionFan where one have in 0/p cyclicFaces_master { type fan; patchType cyclic; jump uniform 0; value uniform 0; jumpTable polynomial 1((100 0)); } Like everin in OpenFOAm if you want to understand the stuff, you have to dig deeper... fan b.c. ./finiteVolume/fields/fvPatchFields/derived/fan in fanFvPatchFields.C you find the evaluation of the polynomial/list. The code state that the old format works, but I have not checked this. if you want to know, how the polynomial is defined you have to ckeck $FOAM_SRC/OpenFOAM/primitives/functions/DataEntryolynomial/ in "polynomial.C" f.i. Foam::scalar Foam:olynomial::value(const scalar x) const { scalar y = 0.0; forAll(coeffs_, i) { y += coeffs_[i].first()*pow(x, coeffs_[i].second()); } return y; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] openfoam 2.2.x - mesquite 2.3.0 | joegi.geo | OpenFOAM Installation | 3 | February 27, 2017 10:20 |
Interpreting streamlines of a rotating fan. | danbence | Visualization & Post-Processing | 1 | April 8, 2014 10:13 |
OpenFOAM Foundation releases OpenFOAM 2.2.2 | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | October 14, 2013 07:18 |
ESI-OpenCFD Releases OpenFOAM v2.2.0 | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 13 | March 30, 2013 16:52 |
Propeller Fan Curve Simulation | Teng_YJ | FLUENT | 2 | February 16, 2009 19:37 |