資源簡介
自身編寫的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用戶子程序
評論
共有 條評論