|
[Sponsors] |
August 5, 2013, 05:52 |
How to set fvOptions
|
#1 |
New Member
Yuri Frey
Join Date: Jul 2013
Posts: 13
Rep Power: 13 |
Hello!
I want to set a porous zone using fvOptions in OF 2.2.x, but it seems that the solver doesn't read the file.. I created a mesh with two separate zones and this is the first part of the cellZones file: Code:
FoamFile { version 2.0; format ascii; class regIOobject; location "constant/polyMesh"; object cellZones; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 2 ( zone2 { type cellZone; cellLabels List<label> 500 ( 0 1 Code:
FoamFile { version 2.0; format ascii; class dictionary; location "system"; object fvOptions; } porosity { type explicitPorositySource; active yes; selectionMode cellZone; cellZone zone2; explicitPorositySourceCoeffs { type DarcyForchheimer; DarcyForchheimerCoeffs { d d [0 -2 0 0 0 0 0] (5e7 -1000 -1000); f f [0 -1 0 0 0 0 0] (0 0 0); coordinateSystem { e1 (1 0 0); e2 (0 1 0); } } } } HTML Code:
http://www.openfoam.org/version2.2.0/fvOptions.php Do I need to specify something more? Thank you, Yuri |
|
August 7, 2013, 09:39 |
|
#2 | |
New Member
Yuri Frey
Join Date: Jul 2013
Posts: 13
Rep Power: 13 |
This is the answer I had from fredo490:
Quote:
|
||
November 29, 2013, 09:50 |
|
#3 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Hi guys,
I am trying to use fvOption, as well. What I would like to do is to add a body-force in certain cells of my domain. Actually, what I did is something like Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object fvOptions; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // momentumSource { type vectorExplicitSetValue; active on; //on/off switch selectionMode all; //cellSet // points //cellZone vectorExplicitSetValueCoeffs { injectionRate { F ( 0.1335 0 0 ); } } } // ************************************************************************* // Could you help, please? Thanks a lot, Samuele |
|
February 7, 2014, 12:05 |
Where's the porosity field?
|
#4 |
Member
Hanniel Freitas
Join Date: Jan 2012
Location: Natal, Brazil
Posts: 34
Rep Power: 14 |
Hello all,
I'm sorry for such a noob question, but recently I started to model a flow over a porous media in OpenFOAM. In the OpenFOAM website I've stumbled upon a new feature since OF 2.x: the fvOptions dictionary. The problem is: I cannot see any reference to the porosity of the medium. The example of a fvOptions dictionary configuration (from the very own OpenFOAM website) is: Code:
porosity1 { type explicitPorositySource; active yes; selectionMode cellZone; cellZone porosity; explicitPorositySourceCoeffs { type DarcyForchheimer; DarcyForchheimerCoeffs { d d [0 -2 0 0 0 0 0] (5e7 -1000 -1000); f f [0 -1 0 0 0 0 0] (0 0 0); coordinateSystem { e1 (0.70710678 0.70710678 0); e2 (0 0 1); } } } } In a post of Alberto Passalacqua's blog, he posted a similar procedure concerning the version 1.5 of the OpenFOAM. The posted code is as follows: Code:
1 ( porosity { coordinateSystem { origin (0 0 0); e1 (1 0 0); e2 (0 1 0); } porosity 0.5; Darcy { d d [0 -2 0 0 0 0 0] (-1 1e7 -1); f f [0 -1 0 0 0 0 0] (0 0 0); } } ) Thanks in advance. Last edited by hfsf; February 7, 2014 at 12:09. Reason: Wrong code writting |
|
February 10, 2014, 07:01 |
|
#5 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18 |
Hello,
For pressure/velocity resolution, you don't need the porosity info (at least with Darcy model), only permeability. However you need it for heat transfert, but in this case just add another fvOption for the heat transfert part (like "constantHeatTransfert" of "effectivenessHeatExchangerSource"). regards, olivier |
|
February 22, 2016, 19:14 |
|
#6 |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
Dear Olivier,
For fvOptions, for those tutorials without the dictionary "fvOptions", the "fvOptions" related terms appears in the source files of the solvers actually are useless. These terms are only active when we specify the parameter in the fvOptions dictionary. Is what I am saying correct? Thank you so much. |
|
Tags |
fvoptions |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TimeVaryingMappedFixedValue | irishdave | OpenFOAM Running, Solving & CFD | 32 | June 16, 2021 07:55 |
Porous region set | braket | FLUENT | 4 | November 18, 2010 03:09 |
What value shall I set for the Convergence criteria? | steventay | CFX | 7 | May 14, 2010 13:44 |
Install problem in linux | navaladi | OpenFOAM Installation | 11 | July 17, 2008 03:24 |
Ibm java gcc | rrr | OpenFOAM Installation | 2 | December 30, 2005 05:18 |