资源简介
FLUENT-EDEM耦合接口,适用版本为FLUENT18.1+EDEM2017,亲测可用
已编译好,可以直接用,使用方法:FLUENT打开user-defined > Functions > Manage… ,在library Name中输入耦合接口所在路径,点击load按钮加载udf宏 ;EDEM:选择菜单Tools > EDEM Coupling Options > Show Coupling Server 在右下角对话框中点击按钮Start,之后EDEM处于监听状态
已编译好,可以直接用,使用方法:FLUENT打开user-defined > Functions > Manage… ,在library Name中输入耦合接口所在路径,点击load按钮加载udf宏 ;EDEM:选择菜单Tools > EDEM Coupling Options > Show Coupling Server 在右下角对话框中点击按钮Start,之后EDEM处于监听状态

代码片段和文件信息
// Parallel EDEM CFD Coupling for ANSYS FLUENT - Version 2.0
// Copyright 2014 ANSYS Inc.
//
// Licensed under the Apache License Version 2.0 (the “License“);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing software
// distributed under the License is distributed on an “AS IS“ BASIS
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either expressed or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Check for the latest news at
//
// http://www.dem-solutions.com/forum
#include
#include “AdaptorInterface.h“
#include “IEDEMCouplingV2_2_0.h“
#include “CDiscreteElement.h“
#include “CFluentParticleData.h“
#include “vectorMaths.h“
#include “CAdaptorQuaternion.h“
#include “udfParticle.h“
using namespace std;
using namespace NApiCfd;
/* using namespace NApiCfd; Get rid of all references to NApiCfd and V1_0_0 */
/* An instance of the CFD coupling with which to interact */
NApiEDEM::IEDEMCoupling g_CfdCoupling = NApiEDEM::IEDEMCoupling();
/* The particle data that will be used with the coupling */
CFluentParticleData g_particleData = CFluentParticleData();
// ADAP_INT void ADAPTOR_initialiseEDEMCoupling(int *success)
// {
// /* C++ interface takes a boolean reference */
// bool boolSuccess;
// g_CfdCoupling.disableGuiWarnings(true);
// boolSuccess = g_CfdCoupling.initialiseCoupling();
// *success = boolSuccess ? 1 : 0;
// }
// ADAP_INT void ADAPTOR_connectEDEMCoupling(int *success)
// {
// /* C++ interface takes a boolean reference */
// bool boolSuccess;
// g_CfdCoupling.disableGuiWarnings(true);
// boolSuccess = g_CfdCoupling.connectCoupling();
// *success = boolSuccess ? 1 : 0;
// }
ADAP_INT void ADAPTOR_init_connectEDEMCoupling(int *success)
{
/* C++ interface takes a boolean reference */
bool boolSuccess = false;
g_CfdCoupling.disableGuiWarnings(true);
if(g_CfdCoupling.initialiseCoupling())
{
boolSuccess = g_CfdCoupling.connectCoupling();
}
*success = boolSuccess ? 1 : 0;
}
/** Connecting function has default value parameters
* Connects the coupling to EDEM
* @param showGui - Determines whether to pop up a warning Gui for connection
* Requires GUI support to choose true.
* @param ipAddress - The network address of the computer to connect to. Default
parameter is the localhost IP
* @return success - Determines whether the connection was successful
bool connectCoupling(bool showGui = false char ipAddress[15] = “127.000.000.001“); */
ADAP_INT void ADAPTOR_init_connectEDEMCoupling_Address(int *success char ipAddress[15])
{
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-05-16 21:39 edem_coupling_build\
文件 828 2016-06-04 19:43 edem_coupling_build\README
目录 0 2018-05-16 21:39 edem_coupling_build\documentation\
文件 1657357 2016-06-04 19:43 edem_coupling_build\documentation\EDEM Fluent Coupling Compilation Windows.pdf
文件 1077199 2016-06-04 19:43 edem_coupling_build\documentation\EDEM Fluent Coupling Usage.pdf
目录 0 2018-05-16 21:39 edem_coupling_build\edem_cfd_adaptor_build\
文件 515 2016-06-04 19:43 edem_coupling_build\edem_cfd_adaptor_build\README.Linux
文件 520 2016-06-04 19:43 edem_coupling_build\edem_cfd_adaptor_build\README.Windows
文件 352 2016-06-04 19:43 edem_coupling_build\edem_cfd_adaptor_build\SConstruct
目录 0 2018-05-16 21:39 edem_coupling_build\edem_cfd_adaptor_build\src\
文件 13104 2016-06-04 19:43 edem_coupling_build\edem_cfd_adaptor_build\src\AdaptorInterface.cpp
文件 8794 2016-06-04 19:43 edem_coupling_build\edem_cfd_adaptor_build\src\AdaptorInterface.h
文件 3462 2016-06-04 19:43 edem_coupling_build\edem_cfd_adaptor_build\src\CAdaptorQuaternion.cpp
文件 3008 2016-06-04 19:43 edem_coupling_build\edem_cfd_adaptor_build\src\CAdaptorQuaternion.h
文件 1185 2016-06-04 19:43 edem_coupling_build\edem_cfd_adaptor_build\src\CCellAndThreadData.cpp
文件 2200 2016-06-04 19:43 edem_coupling_build\edem_cfd_adaptor_build\src\CCellAndThreadData.h
文件 5355 2016-06-04 19:43 edem_coupling_build\edem_cfd_adaptor_build\src\CFluentParticleData.cpp
文件 3536 2016-06-04 19:43 edem_coupling_build\edem_cfd_adaptor_build\src\CFluentParticleData.h
文件 6408 2016-06-04 19:43 edem_coupling_build\edem_cfd_adaptor_build\src\CParticleData.cpp
文件 5311 2016-06-04 19:43 edem_coupling_build\edem_cfd_adaptor_build\src\CParticleData.h
文件 834 2016-06-04 19:43 edem_coupling_build\edem_cfd_adaptor_build\src\SConsc
文件 3414 2016-06-04 19:43 edem_coupling_build\edem_cfd_adaptor_build\src\udfParticle.h
目录 0 2018-05-16 21:39 edem_coupling_build\lib_edem_coupling\
文件 1089 2016-06-04 19:43 edem_coupling_build\lib_edem_coupling\README.Linux
文件 1764 2016-06-04 19:43 edem_coupling_build\lib_edem_coupling\SConstruct
目录 0 2018-05-16 21:39 edem_coupling_build\lib_edem_coupling\lib\
文件 1013 2016-06-04 19:43 edem_coupling_build\lib_edem_coupling\lib\addon.scm
文件 907 2016-06-04 19:43 edem_coupling_build\lib_edem_coupling\lib\edem_bind_subrs.scm
文件 3632 2016-06-04 19:43 edem_coupling_build\lib_edem_coupling\lib\edem_injection.scm
文件 20664 2016-06-04 19:43 edem_coupling_build\lib_edem_coupling\lib\edem_main_panel.scm
文件 20111 2016-06-04 19:43 edem_coupling_build\lib_edem_coupling\lib\edem_main_panel.scm~
............此处省略27个文件信息
- 上一篇:Datcom说明书
- 下一篇:Axure web/PC组件库
相关资源
- pageOfficeDemo
- fluent 进行气泡模拟的动画及教程-2f
- 基于FLUENT的多翼离心风机内部流场的
- 基于Fluent的液体分流器内部流场分析
- 袋式除尘器内部湍流流场数值模拟研
- 基于FLUENT对采空区流场的数值模拟
- 基于Fluent的混合机内部流场的三维数
- 基于Fluent的螺旋输送机数值模拟与试
- 基于FLUENT的旋风除尘器内部流场数值
- 基于Fluent的三角翼二维湍流流场数值
- 基于Fluent的具有防渗墙堤基的渗流场
- 综放面瓦斯渗流规律数值模拟研究
- 喷油嘴微小孔磨粒流加工特性的数值
- 5naca63418yijie40000.casfluent二维翼型仿真
- MESH网格划分课程
- 康奈尔大学fluent教程
- FLUENT HELP 算例精选中文版二
- FLUENT HELP 算例精选中文版一
- fluent安装证书
- fluent在喷管中的应用
- FLUENT全攻略(完整)
- FLUENT6.1 全攻略
- FLUENT在火箭发动机领域的应用
- M6机翼fluent教程
- 基于fluent 做噪声计算的很细致的教程
- fluent汽车模型CFD模拟
- fluent UDF完整中文资料
- 室内甲醛污染物扩撒的仿真分析
- EDEM官方讲义
- fluent物理模型及相关定义和使用
评论
共有 条评论