找回密码
 注册
查看: 4105|回复: 16

能否将某一步的计算结果作为初始条件重新赋给算例呢???

[复制链接]
发表于 2005-10-14 13:21:27 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
   计算两个喷管射流,喷管进口条件不同,但外场条件相同,为了加快速度,我想将其中一个算例迭代到某一步的结果作为初始条件赋给另一个模型,只改变其喷管进口条件,不知能否实现,如何实现?高手指教!
 楼主| 发表于 2005-10-14 13:26:24 | 显示全部楼层

能否将某一步的计算结果作为初始条件重新赋给算例呢???

补充一下,是指整个计算域的全部数据全部赋给新的算例,谢谢!!
发表于 2005-10-14 13:27:09 | 显示全部楼层

能否将某一步的计算结果作为初始条件重新赋给算例呢???

应该可以,重新设定相应参数就行
 楼主| 发表于 2005-10-14 15:43:18 | 显示全部楼层

能否将某一步的计算结果作为初始条件重新赋给算例呢???

谢谢斑竹,但我的意思是将一个模型的流场数据赋给另一个算例(这两个算例的计算域相同),而不是在同一个算例上改进口条件,这样可以吗?
发表于 2005-10-14 15:45:18 | 显示全部楼层

能否将某一步的计算结果作为初始条件重新赋给算例呢???

[这个贴子最后由shenzh在 2005/10/14 03:45pm 第 1 次编辑]

好像赵玉新的中文帮助里讲到了这一点,你认真去找一下,在中间一部分。
 楼主| 发表于 2005-10-15 13:19:25 | 显示全部楼层

能否将某一步的计算结果作为初始条件重新赋给算例呢???

我找找看,谢谢楼上
发表于 2005-10-15 19:45:26 | 显示全部楼层

能否将某一步的计算结果作为初始条件重新赋给算例呢???

关注中……
和我遇到的困难一样
发表于 2005-10-15 20:03:01 | 显示全部楼层

能否将某一步的计算结果作为初始条件重新赋给算例呢???

我现在正在攻克同一个难题,希望以后多多交流
 楼主| 发表于 2005-10-16 15:04:03 | 显示全部楼层

能否将某一步的计算结果作为初始条件重新赋给算例呢???

多多交流,目前尚未有答案哦
发表于 2005-10-17 19:59:18 | 显示全部楼层

能否将某一步的计算结果作为初始条件重新赋给算例呢???

可以的。在file-》interpolate中可以把结果保存成一个文件,然后在新的算例中读入。不过我用的是完全相同的网格,不知道网格不同的话行不行。
发表于 2005-10-27 17:36:44 | 显示全部楼层

能否将某一步的计算结果作为初始条件重新赋给算例呢???

哈哈,好像不可以,使用过结果………………死机
发表于 2005-10-27 19:10:03 | 显示全部楼层

能否将某一步的计算结果作为初始条件重新赋给算例呢???

[这个贴子最后由rener在 2005/10/28 04:28pm 第 1 次编辑]

首先要说声抱歉了,原来意为网格变的话就不可以赋初值!今天按上面spalding
老兄的作法试了试,可以的。
以下是帮助的说明:
4.14.1 Performing Grid-to-Grid Solution Interpolation
The procedure for grid-to-grid solution interpolation is as follows:

1.
Set up the model and calculate a solution on the initial grid.
2.
Write an interpolation file for the solution data to be interpolated onto the new grid, using the Interpolate Data panel (Figure  4.14.1).
File  Interpolate...


Figure 4.14.1: The Interpolate Data Panel  

(a)
Under Options, select Write Data.
(b)
In the Cell Zones list, select the cell zones for which you want to save data to be interpolated.


Note:
If your case includes both fluid and solid zones, write the data for the fluid zones and the data for the solid zones to separate files.

(c)
Choose the variable(s) for which you want to interpolate data in the Fields list. All FLUENT solution variables are available for interpolation.
(d)
Click Write... and specify the interpolation file name in the resulting Select File dialog box. The file format is described in Section  4.14.2.
3.
Set up a new case.

(a)
Read in the new grid, using the appropriate menu item in the File/Read/ or File/Import/ menu.
(b)
Define the appropriate models.


Enable all of the models that were enabled in the original case. For example, the energy equation was enabled in the original case and you forget to enable it in the new case, the temperature data in the interpolation file will not interpolated.



(c)
Define the boundary conditions, material properties, etc.
4.
Read in the data to be interpolated.
File  Interpolate...

(a)
Under Options, select Read and Interpolate.
(b)
In the Cell Zones list, select the cell zones for which you want to read and interpolate data.
If the solution has not been initialized, computed, or read, all zones in the Cell Zones list is selected by default, to ensure that no zone remains without data after the interpolation. If all zones already have data (from initialization or a previously computed or read solution), select a subset of the Cell Zones to read and interpolate data onto a specific zone (or zones).

(c)
Click on the Read... button and specify the interpolation file name in the resulting Select File dialog box.


If your case includes both fluid and solid zones, the two sets of data are saved to separate files. Hence perform these steps twice, once to interpolate the data for the fluid zones and once to interpolate the data for the solid zones.



5.
Reduce the under-relaxation factors and calculate on the new grid for a few iterations to avoid sudden changes due to any imbalance of fluxes after interpolation. Then increase the under-relaxation factors and compute a solution on the new grid.
发表于 2005-10-28 16:32:34 | 显示全部楼层

能否将某一步的计算结果作为初始条件重新赋给算例呢???

上面的图没贴上,我作了个pdf接上。
发表于 2005-10-28 17:12:23 | 显示全部楼层

能否将某一步的计算结果作为初始条件重新赋给算例呢???

4.14.2 Format of the Interpolation File
An example of an interpolation file is shown below:

2
2
34800
3
x-velocity
pressure
y-velocity
-0.068062
-0.0680413
...
The format of the interpolation file is as follows:

The first line is the interpolation file version. It is 1.0 for FLUENT 5 and 2.0 for FLUENT 6.
The second line is the dimension ( 2 or 3).
The third line is the total number of points.
The fourth line is the total number of fields (temperature, pressure, etc.) included.
From line 5 is a list of field names. To see a complete list of the field names used by FLUENT select the display/contours text command and view the available choices for contours of. The list depends on the models turned on.
Then comes a list of , , and (in 3D)  coordinates for all the data points.
In the end is list of the field values at all the points in the same order as their names. The number of coordinate and field points should match the number given in line 3.
发表于 2005-10-28 17:18:36 | 显示全部楼层

能否将某一步的计算结果作为初始条件重新赋给算例呢???

再向大家汇报一下!上面最后一句看来比较关键
The number of coordinate and field points should match the number given in line 3.
我的理解是:也就是说网格节点最好相等,也就是说也可不等,但用实用角度讲,如果不相等的话interpolate可能就没有太大的意义。
但是我自己做了一个很简单的二维房间通风的例子。只改进风口速度用原来1.0m的速度结果interpolate 1.5m速度计算,结果很令人失望。其迭代次数比不用interpolate时还要多!请高手指教!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表