资源简介
FLUENT-EDEM耦合接口,适用版本为FLUENT16+EDEM2.7,亲测可用
已编译好,可以直接用,使用方法: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 1.0
// Copyright 2013 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.
//
// Portions of this software were developed in a collaboration between
// Adam Anderson of ANSYS Inc. and Andrew Hobbs of Astec Inc. A user
// community forum for sharing experiences and code improvements is
// maintained 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;
}
/*
ADAP_INT void ADAPTOR_newMeshFile(const char* filename
const double* gravity
const char* meshFilename
int* success)
{
bool boolSuccess = g_CfdCoupling.newGeometry(filename meshFilename);
if(boolSuccess)
{
NApiEDEM::C3dValue grav(gravity[0] gravity[1] gravity[2]);
boolSuccess = g_CfdCoupling.setGravity(grav);
}
*success = b
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 12032 2015-01-27 06:41 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\src\AdaptorInterface.cpp
文件 8783 2013-08-28 18:14 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\src\AdaptorInterface.h
文件 3664 2015-01-27 06:47 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\src\CAdaptorQuaternion.cpp
文件 3210 2013-08-28 18:14 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\src\CAdaptorQuaternion.h
文件 1387 2013-08-28 18:14 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\src\CCellAndThreadData.cpp
文件 2402 2013-08-28 18:14 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\src\CCellAndThreadData.h
文件 5557 2013-08-28 18:14 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\src\CFluentParticleData.cpp
文件 3738 2013-08-28 18:14 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\src\CFluentParticleData.h
文件 6608 2013-08-28 18:14 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\src\CParticleData.cpp
文件 5513 2013-08-28 18:14 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\src\CParticleData.h
文件 37142 2014-11-10 12:34 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\src\IEDEMCouplingV2_2_0.h
文件 3514 2013-08-28 18:14 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\src\udfParticle.h
文件 97303 2015-03-06 17:07 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\win64\AdaptorInterface.obj
文件 72842 2015-03-06 17:07 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\win64\CAdaptorQuaternion.obj
文件 769 2015-03-06 17:07 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\win64\CCellAndThreadData.obj
文件 159948 2015-03-06 17:07 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\win64\CFluentParticleData.obj
文件 548 2013-06-28 19:10 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\win64\compile_adaptor_ob
文件 137829 2015-03-06 17:07 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\edem_adaptor\win64\CParticleData.obj
文件 1456 2014-11-10 12:34 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\EDEM_INCLUDE_FILES\ApiIds.h
文件 6477 2014-11-10 12:34 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\EDEM_INCLUDE_FILES\ApiTypes.h
文件 1483 2014-11-10 12:34 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\EDEM_INCLUDE_FILES\C3dValue.h
文件 6564 2015-01-27 06:23 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\EDEM_INCLUDE_FILES\CDiscreteElement.h
文件 3200 2014-11-10 12:34 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\EDEM_INCLUDE_FILES\IApi.h
文件 2437 2014-11-10 12:34 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\EDEM_INCLUDE_FILES\IApiManager_1_0.h
文件 955 2014-11-10 12:34 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\EDEM_INCLUDE_FILES\ICfdCouplingV1_0_0.h
文件 37142 2014-11-10 12:34 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\EDEM_INCLUDE_FILES\IEDEMCouplingV2_2_0.h
文件 37756 2014-11-10 12:34 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\EDEM_INCLUDE_FILES\vectorMaths.h
文件 219648 2014-12-10 18:41 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\EDEM_LIBRARY_DIR\libEDEMCouplingClientV2_2_0.dll
文件 28130 2014-12-10 18:41 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\EDEM_LIBRARY_DIR\libEDEMCouplingClientV2_2_0.lib
文件 11558 2013-08-14 16:20 Fluent16-EDEM2.7_Coupling_VS2013\Fluent16-EDEM2.7_Coupling_VS2013\LICENSE.txt
............此处省略142个文件信息
相关资源
- EDEM_2.5_CFD_Coupling_Fluent_13.0.0_Hikey耦合接
- Fluent VOF 模型心得
- Fluent软件学习网址
- 如何在超算中心使用fluent做并行计算
- Fluent UDF中文教程
- NetworkStateDemo.zip
- TurboCodeDemo.rar
- fluent udf源文件 fluent udf 初始化,材
- yplus快速计算
- Ansys.Products.PDF.Docs.2020R2第一部分用户
- FLUENT在气动噪声问题上的处理方法
- 基于Fluent的锥形节流阀流场数值模拟
- WebAPIFileDemo
- fluent安装教程
- ansys fluent官方培训视频中文高清、培
- ansys fluent udf 定义物性
- EDEM2.7和fluent19.0耦合
- FLUENT 2020R2 tutorial guide PDF及案例源文
- 基于Fluent的辅助喷嘴气流流场数值模
- fluent的jou文件输出壁面受力结果
- MessageQueueDemo
- Fluent雾化喷嘴数值仿真介绍
- EDEM.破解方法
- ANSYS_FLUENT经典的共轭传热算例
- fluent——scheme简明中文手册
- fluent模拟喷雾
- ANSYS-Fluent流体核心技术与应用高级培
- EDEM for Ansys workbench
- fluentftp组件
- 螺旋输送EDEM模拟
评论
共有 条评论