资源简介
自身编写的fluen19.0与edem2.7耦合的udf内容,能够实现二者耦合计算

代码片段和文件信息
// 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 2.7_19.0_Coupling_standard by myself\edem_adaptor\src\AdaptorInterface.cpp
文件 8783 2013-08-28 18:14 2.7_19.0_Coupling_standard by myself\edem_adaptor\src\AdaptorInterface.h
文件 1456 2014-11-10 12:34 2.7_19.0_Coupling_standard by myself\edem_adaptor\src\ApiIds.h
文件 6477 2014-11-10 12:34 2.7_19.0_Coupling_standard by myself\edem_adaptor\src\ApiTypes.h
文件 3664 2015-01-27 06:47 2.7_19.0_Coupling_standard by myself\edem_adaptor\src\CAdaptorQuaternion.cpp
文件 3210 2013-08-28 18:14 2.7_19.0_Coupling_standard by myself\edem_adaptor\src\CAdaptorQuaternion.h
文件 1387 2013-08-28 18:14 2.7_19.0_Coupling_standard by myself\edem_adaptor\src\CCellAndThreadData.cpp
文件 2402 2013-08-28 18:14 2.7_19.0_Coupling_standard by myself\edem_adaptor\src\CCellAndThreadData.h
文件 5557 2013-08-28 18:14 2.7_19.0_Coupling_standard by myself\edem_adaptor\src\CFluentParticleData.cpp
文件 3738 2013-08-28 18:14 2.7_19.0_Coupling_standard by myself\edem_adaptor\src\CFluentParticleData.h
文件 6608 2013-08-28 18:14 2.7_19.0_Coupling_standard by myself\edem_adaptor\src\CParticleData.cpp
文件 5513 2013-08-28 18:14 2.7_19.0_Coupling_standard by myself\edem_adaptor\src\CParticleData.h
文件 37142 2014-11-10 12:34 2.7_19.0_Coupling_standard by myself\edem_adaptor\src\IEDEMCouplingV2_2_0.h
文件 3514 2013-08-28 18:14 2.7_19.0_Coupling_standard by myself\edem_adaptor\src\udfParticle.h
文件 59150 2018-08-10 13:46 2.7_19.0_Coupling_standard by myself\edem_adaptor\win64\AdaptorInterface.obj
文件 36159 2018-08-10 13:46 2.7_19.0_Coupling_standard by myself\edem_adaptor\win64\CAdaptorQuaternion.obj
文件 856 2018-08-10 13:46 2.7_19.0_Coupling_standard by myself\edem_adaptor\win64\CCellAndThreadData.obj
文件 162924 2018-08-10 13:46 2.7_19.0_Coupling_standard by myself\edem_adaptor\win64\CFluentParticleData.obj
文件 548 2013-06-28 19:10 2.7_19.0_Coupling_standard by myself\edem_adaptor\win64\compile_adaptor_ob
文件 138266 2018-08-10 13:46 2.7_19.0_Coupling_standard by myself\edem_adaptor\win64\CParticleData.obj
文件 1456 2014-11-10 12:34 2.7_19.0_Coupling_standard by myself\EDEM_INCLUDE_FILES\ApiIds.h
文件 6477 2014-11-10 12:34 2.7_19.0_Coupling_standard by myself\EDEM_INCLUDE_FILES\ApiTypes.h
文件 1483 2014-11-10 12:34 2.7_19.0_Coupling_standard by myself\EDEM_INCLUDE_FILES\C3dValue.h
文件 6564 2015-01-27 06:23 2.7_19.0_Coupling_standard by myself\EDEM_INCLUDE_FILES\CDiscreteElement.h
文件 3200 2014-11-10 12:34 2.7_19.0_Coupling_standard by myself\EDEM_INCLUDE_FILES\IApi.h
文件 2437 2014-11-10 12:34 2.7_19.0_Coupling_standard by myself\EDEM_INCLUDE_FILES\IApiManager_1_0.h
文件 955 2014-11-10 12:34 2.7_19.0_Coupling_standard by myself\EDEM_INCLUDE_FILES\ICfdCouplingV1_0_0.h
文件 37142 2014-11-10 12:34 2.7_19.0_Coupling_standard by myself\EDEM_INCLUDE_FILES\IEDEMCouplingV2_2_0.h
文件 37756 2014-11-10 12:34 2.7_19.0_Coupling_standard by myself\EDEM_INCLUDE_FILES\vectorMaths.h
文件 219648 2014-12-10 18:41 2.7_19.0_Coupling_standard by myself\EDEM_LIBRARY_DIR\libEDEMCouplingClientV2_2_0.dll
............此处省略143个文件信息
- 上一篇:powerworld简单节点的算例
- 下一篇:UMAT用户子程序
相关资源
- pageOfficeDemo
- fluent 进行气泡模拟的动画及教程-2f
- 基于FLUENT的多翼离心风机内部流场的
- 基于Fluent的液体分流器内部流场分析
- 袋式除尘器内部湍流流场数值模拟研
- 基于FLUENT对采空区流场的数值模拟
- 基于Fluent的混合机内部流场的三维数
- 基于Fluent的螺旋输送机数值模拟与试
- 基于FLUENT的旋风除尘器内部流场数值
- 基于Fluent的三角翼二维湍流流场数值
- 基于Fluent的具有防渗墙堤基的渗流场
- 综放面瓦斯渗流规律数值模拟研究
- 喷油嘴微小孔磨粒流加工特性的数值
- 5naca63418yijie40000.casfluent二维翼型仿真
- MESH网格划分课程
- 康奈尔大学fluent教程
- FLUENT HELP 算例精选中文版二
- FLUENT HELP 算例精选中文版一
- fluent18.1-EDEM2017耦合接口
- fluent安装证书
- fluent在喷管中的应用
- FLUENT全攻略(完整)
- FLUENT6.1 全攻略
- FLUENT在火箭发动机领域的应用
- M6机翼fluent教程
- 基于fluent 做噪声计算的很细致的教程
- fluent汽车模型CFD模拟
- fluent UDF完整中文资料
- 室内甲醛污染物扩撒的仿真分析
- EDEM官方讲义
评论
共有 条评论