资源简介
自身编写的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用户子程序
相关资源
- FLUENT 2020R2 tutorial guide PDF及案例源文
- 基于Fluent的辅助喷嘴气流流场数值模
- fluent的jou文件输出壁面受力结果
- MessageQueueDemo
- Fluent雾化喷嘴数值仿真介绍
- EDEM.破解方法
- ANSYS_FLUENT经典的共轭传热算例
- fluent——scheme简明中文手册
- fluent模拟喷雾
- ANSYS-Fluent流体核心技术与应用高级培
- EDEM for Ansys workbench
- fluentftp组件
- 螺旋输送EDEM模拟
- Fluent 18-EDEM 2018的耦合文件
- CFD_EDEM耦合方法在气固两相流研究中的
- fluent udf中文帮助
- qrCodeDemo.rar
- 核沸腾Fluent仿真
- Fluent两相流设置教程
- Fluent动网格和VOF详细设置教程
- Fluent-UDF常见问题解析
- fluent汉化补丁
- Ansys.Products.2019R3.Win64-SSQ.torrent
- Fluent二维翼型俯仰运动UDF
- ANSYS_Fluent_Workbench_Tutorial_Guide_2019_R3.
- fluent text command list
- Fluent UDF 高级应用技术培训
- FLUENT UDF 正弦速度边界条件
- fluent网格划分的关键
- Confluent.Kafka源代码+Test
评论
共有 条评论