资源简介
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组件库
相关资源
- fluent安装证书
- fluent在喷管中的应用
- FLUENT全攻略(完整)
- FLUENT6.1 全攻略
- FLUENT在火箭发动机领域的应用
- M6机翼fluent教程
- 基于fluent 做噪声计算的很细致的教程
- fluent汽车模型CFD模拟
- fluent UDF完整中文资料
- 室内甲醛污染物扩撒的仿真分析
- EDEM官方讲义
- fluent物理模型及相关定义和使用
- Fluent的UDF官方案例(含代码)
- VueDemo.zip
- 中科大fluent讲稿
- 基于ansys180Fluent离心泵流场仿真教程
- EDEM基础教程
- zw_ScanCodeDemo.zip
- Fluent 官方UDF手册+UDF案例15.0
- fluent经典算例模拟喷嘴喷雾
- Fluent简单流场和温度场计算
- fluent圆柱绕流卡曼涡街仿真case
- fluent教程,学习CFD入门
- FLUENT经典算例合集7个
- VOF详解——FLUENT
- myServiceDemo
- fluent udf 中文帮助
- Fluent 2019R2-EDEM 2018 耦合文件基于coup
- LireDemo LIRE的
- fluent气液两相流算例
评论
共有 条评论