houzer 发表于 2008-7-16 09:13:19

如何在CFX瞬态分析中设定变化的入口速度

(这个帖子我最初贴在C04板块,现转贴过来,便于在WB的CFX瞬态分析中,使用变化的入口速度。这也是今后做耦合场分析的一个小小的基础知识)
***********************************************************************
问题的提出:
            我希望在做一个瞬态分析的时候,将入口的流速设定为10m/s 到20m/s 这样一个变化的过程。速度变化随时间是线性的例如“v=100*t”
         不知道如何在“入口速度”上写一个公式来表达之?
问题的解决:
            1:在入口速度设置时,后方有“公式”按钮。可以将一个已命名的公式写在这里。
            2:在项目目录的“公式”处可以添加一个新的公式。
            3:最关键的地方:CFX的公式是需要对量纲进行计算的!例如:在时间等于0~5秒内,速度相应从10m/s 变化到 20m/s,公式应该写成:10+10*t
(解释一下,t是CFX内置的变量,代表瞬态分析的时间;t自带的量纲是;最后的结果,一定要确保得到,这样才能和入口“速度”匹配上)
***********************************************************************
如此,入口的速度就是根据时间变化的了。另外,我们熟悉的各种函数都是可以用在公式中的。
:loveliness: :loveliness: :loveliness:

[ 本帖最后由 houzer 于 2008-7-16 09:15 编辑 ]

houzer 发表于 2008-7-16 09:23:59

附件是我在C04上找到的关于CFX的CEL入门介绍,我看了下,觉得它对我们后续的学习有很大帮助。
它的作用相当于Ansys的APDL,一些CFX软件本身不具备的功能,可以用它来扩展之——所谓的“没有牛软件,只有牛人”就是指的这种东东了。
希望有志同道合的朋友一起研究,并在WB中实际运用。
谢谢!

:loveliness: :loveliness: :loveliness:

姜虎东 发表于 2008-7-16 09:41:32

第一时间上来支持

lgm 发表于 2008-7-16 12:39:44

支持楼主!

积极每一天 发表于 2008-9-4 15:54:04

赞一个,我最近用cfx,入口速度设置为正弦变化。刚模模糊糊知道应该怎么做,就看到了这个帖子,忒高兴了:lol 。

flyingd 发表于 2008-9-4 19:49:50

回复 2# houzer 的帖子

您可在funciton 中定义速度变量,然后在进口引用他即可。

abel2008 发表于 2008-9-4 22:50:29

写公式时弄清楚每个量的单位很重要啊。

hjli6 发表于 2008-9-23 01:00:44

3:最关键的地方:CFX的公式是需要对量纲进行计算的!例如:在时间等于0~5秒内,速度相应从10m/s 变化到 20m/s,公式应该写成:10+10*t
   (解释一下,t是CFX内置的变量,代表瞬态分析的时间;t自带的量纲是;最后的结果,一定要确保得到,这样才能和入口“速度”匹配上)0 p9 W% Z. L% N) C2 r; L
...

按公式,是不应该为0~1秒或者10M/S到60M/S?

[ 本帖最后由 hjli6 于 2008-9-23 01:03 编辑 ]

liuzhe1977_1213 发表于 2008-9-23 18:47:37

I think there are threes types of method to handle the time varying inlet boundary condition based the difficulity of proceesing
1) CFX Functions
this method is easy, u can get the time varying inlet based on the txt file or use the EXCEL, and then use the CFX function to read it, and apply the function at the boundary conditions
2) CEL method
this method needs to compile the time varying inlet function such as u=A*sin(omega*t)
3) User Fortran method
this method is difficult but is the most effective and broad method, which can deal with any kinds of time varying inlet cases

小强乐了 发表于 2008-9-24 09:16:17

回复 8# hjli6 的帖子

同意
好像弄错了

小强乐了 发表于 2008-9-24 09:18:03

回复 2# houzer 的帖子

有用的东东

LION_ARTHAS 发表于 2008-9-24 09:50:13

楼主好强啊

LION_ARTHAS 发表于 2008-9-24 09:55:50

楼主好强啊

tyy2009 发表于 2008-10-29 19:58:43

请问:如果是没有规律的时间与速度该如何定义?

hjli6 发表于 2008-10-29 20:41:40

using step function.

time                   velocity
t0-->t1                  V1
t1-->                     V2

The CEL:

V=V1*step((t-t0)/1)+(v2-V1)*step((t-t1)/1)

[ 本帖最后由 hjli6 于 2008-10-30 03:51 编辑 ]

fruitlover 发表于 2010-7-16 11:48:08

本帖最后由 fruitlover 于 2010-7-16 12:15 编辑

1# houzer

请问houzer,我也是要设定随时间变化的入口速度,给的入口速度invel=10*t,瞬态分析中,total time为1s,timestep为0.01s,initial time 为0。然后在initialisation中给定速度分量u、v、w为0,static pressure是0,turbulence
eddy dissipation也是0(不设置这些值就提示错误)。但求解时怎么老是出错呢?这样的设置有什么问题吗?

出错提示:
+--------------------------------------------------------------------+
|                     ****** Notice ******                           |
|A wall has been placed at portion(s) of an OUTLET               |
|boundary condition (at 100.0% of the faces, 100.0% of the area)   |
|to prevent fluid from flowing into the domain.                  |
|The boundary condition name is: outlet.                           |
|The fluid name is: Water.                                       |
|If this situation persists, consider switching                  |
|to an Opening type boundary condition instead.                  |
+--------------------------------------------------------------------+

+--------------------------------------------------------------------+
| ERROR #004100018 has occurred in subroutine FINMES.                |
| Message:                                                         |
| Fatal overflow in linear solver.                                 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
|                An error has occurred in cfx5solve:               |
|                                                                  |
| The ANSYS CFX solver exited with return code 1.   No results file|
| has been created.                                                |
+--------------------------------------------------------------------+

fruitlover 发表于 2010-7-17 14:15:36

怎么没人回答,大家都放假了么?

sinofsi 发表于 2010-9-28 14:41:22

问一下,这种情况下初始化的速度应该怎么设置最好呢?

zhh0910 发表于 2010-9-28 21:14:24

可以先做一个定常的初始值为10m/s的情况在用cel表达式来定义进口速度做非定常的

ting110110 发表于 2010-10-28 19:27:02

请问高手们自然风怎么添加,或者是入口速读怎么读取随时间的变化的量呢!
页: [1] 2
查看完整版本: 如何在CFX瞬态分析中设定变化的入口速度