如何设置fvOptions【翻译】

翻译自:CFD-online

帖子地址:http://www.cfd-online.com/Forums/openfoam-pre-processing/121763-how-set-fvoptions.html

yurifrey

大家好

我想在2.2.x版本当中使用fvOptions设置多孔介质区域。但是求解器似乎没有读取这个文件...我创建了拥有两个分离域的网格,下面是第一部分区域文件:

Code:

FoamFile

{

version 2.0;

format ascii;

class regIOobject;

location "constant/polyMesh";

object cellZones;

}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

 

2

(

zone2

{

type cellZone;

cellLabels List

500

(

0

1

我在system文件夹下创建一个名为fvOptions的文件

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

但是求解器(icoFoam求解器)不能读取它(如果我改变系数的值对于解没有任何改变...

我需要指定其他更多的参数吗?

谢谢你

Yuri

yurifrey

这个是我从fredo490得到的答案

Quote:

Hello,
I don't have any machine running openfoam next to me now so it's a bit hard to answer.

My guess is that icoFoam has not been updated to consider the fvOption files. The best way to check is to go to the icoFoam source code and check if you find any "+ fvOption" or something similar in one of the equation solved.

I have some source code on my computer but only simpleFoam and pimplefoam are up to date. If you look at the pimpleFoam UEqn.h you will find the following code to solve the momentum equation:

Code:

tmpUEqn

(

fvm::ddt(U)

+ fvm::div(phi, U)

+ turbulence->divDevReff(U)

==

fvOptions(U)

);

The last term is the "fvOptions(U)" file that consider lthe porosity and so on.

Try to find the same for icoFoam... but I think you will not find it because icoFoam behave a bit differently.

Hope it helps you.

我检查了一下,确实如他所说。使用pimpleFoam就没有任何问题。

samiam1000

大伙好

我也打算使用fvOption

我想要做的是将一个体积力施加到我计算域的一些特定的单元上。

事实上,我做的事情如下:

Code:

 

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 );

}

}

}

 

 

// ************************************************************************* //

但是我不理解哪一个是正确的实体(我认为我所做的是添加了一个速度而非力)。

你能帮助我吗?

非常感谢

Samuele

hfsf

大家好

非常抱歉问如此新手的问题,但是最近我在OpenFOAM中模拟流体流过多孔介质。在OpenFOAM的网站上,我偶然发现了从OF2.x开始的一个新特性:fvOptions字典

问题是:我没有看到任何多孔介质的参考资料,如你所见!!!

Alberto Passalacqua发布的博客中,他发布了一个与OpenFOAM1.5版本关联中的程序。发布的程序如下:

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);

}

}

)

坐标系定义后,多孔介质定义在这里。在2.2版本中改变了什么?我应该如何定义多孔介质?

先谢过了

olivierG

大家好

对于压力/速度,你不需要多孔介质信息(起码达西定律),仅仅需要渗透率。

然而你需要分析它的传热,在这个算例中仅仅需要为传热部分添加其他的fvOption(像"effectivenessHeatExchangerSource""constantHeatTransfert"

祝好

olivier

openfoammaofnepo

亲爱的olivier

对于案例中没有"fvOptions"字典,出现在求解器源项文件

"fvOptions"相关术语是无用的。这些术语仅在我们在fvOption自动中指定参数时激活。我说的正确吗?非常感谢

aghsin

大家好

当我对两个单元中间的点设置fvOption时,我想知道为了求解PDEfvOption在单元间是如何插值的?

谢谢

posted @ 2016-07-19 11:55  硫酸亚铜  阅读(1015)  评论(0编辑  收藏  举报