资源简介
1、ANSYS 2019R2和EDEM 2018安装在默认位置(C:\Program Files\ANSYS Inc 或 C:\Program Files\DEM Solutions)
2、食用过程中有任何问题请参考流沙大神的耦合文件编译贴或CSDN搜索到的编译指导。
代码片段和文件信息
#include “udf.h“
#include “edem_coupling.h“
#include “compute_particle_heat_flux.h“
#define P_PROJECTED_AREA(P)(0.25*M_PI*SQR(P_DIAM(P)))
#if !RP_HOST
static void
compute_next_velocity(real dt real a[3] real b real V0[3] real Vn[3])
{
real beta_fact = 1./(1. + b*dt);
int i;
for (i=0; i<3; ++i)
Vn[i] = (V0[i] + dt *a[i]) * beta_fact;
}
#endif
void compute_particle_forces_using_Fluent(Tracked_Particle *tp Injection *I cxboolean fluid_source_terms)
{
#if !RP_HOST
Particle *pp;
loop (pp I->p)
{
real N3V_VEC(acc); /* explicit part of particle acceleration */
real N3V_VEC(dvdt) = {0.}; /* velocity derivative not used */
real beta; /* drag factor */
real vmf_inv; /* virtual mass factor */
real next_vel[6]; /* first 3 components contain new velocity last 3 components carry old velocity */
cxboolean update_randoms = FALSE; /* do not update particle random numbers for Brownian motion inside ParticleAcceleration */
cxboolean cphase_interaction = TRUE; /* fill relevant fluid source terms inside HeatMassUpdate. */
real strength = P_N(pp)/solver_par.flow_time_step; /* number of particles per second typically 1 per time step*/
particle_state_t p_old; /* needed to restore unintended changes in HeatMassUpdate */
/* Fill tracked particle with information in pp and interpolate cphase_state */
init_tracked_particle(tp pp dpm_par.unsteady_tracking FALSE FALSE);
P_DT(tp) = pp->next_time_step;
P_TIME(tp) += P_DT(tp);
if (DEM_DRAG_FLUENT_P(edem_coupling))
{
/* Now let‘s do a virtual step into the particle‘s direction for the given flow time step */
ParticleAcceleration(tp acc dvdt &beta &vmf_inv update_randoms);
compute_next_velocity(P_DT(tp) acc beta P_VEL(tp) next_vel);
/* acc is carrying explicit part of particle acceleration
* let us add implicit part and subtract gravity included in body forces
* to provide fluid related acceleration to EDEM as a force */
N3V_VS(acc -= P_VEL(pp) * beta);
/* N3V_V (acc -= tp->source.bf_acc); */
N3V_V (acc -= solver_par.G);
/* Now let‘s compute the particle force from the acceleration */
ND_VS(P_DEM_FORCE_X(pp)P_DEM_FORCE_Y(pp)P_DEM_FORCE_Z(pp)= acc * P_MASS(pp));
/* Update velocity of tracked particle to be considered in AddSources */
N3V_V(P_VEL(tp) = next_vel);
}
/* need to call this always since some DPM source terms are treated inside */
/* save state before calling HeatMassUpdate */
memcpy((char *) &(p_old) (char *) &(tp->state) sizeof(particle_state_t));
HeatMassUpdate(tp cphase_interaction);
/* Consider Fluent heat transfer here since we have tp already set */
if (DEM_HEAT_COUPLED_P(edem_coupling) && DEM_HEAT_TRANSFER_FLUENT_P(ed
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 8540 2016-06-04 19:43 AdaptorInterface.h
文件 6710 2016-06-04 19:43 compute_particle_forces.c
文件 206 2016-06-04 19:43 compute_particle_forces.h
文件 2891 2016-06-04 19:43 compute_particle_heat_flux.c
文件 321 2016-06-04 19:43 compute_particle_heat_flux.h
目录 0 2019-08-30 15:45 documentation\
文件 1657357 2016-06-04 19:43 documentation\EDEM Fluent Coupling Compilation Windows.pdf
文件 1077199 2016-06-04 19:43 documentation\EDEM Fluent Coupling Usage.pdf
目录 0 2019-08-30 15:45 edem_cfd_adaptor_build\
文件 515 2016-06-04 19:43 edem_cfd_adaptor_build\README.Linux
文件 520 2016-06-04 19:43 edem_cfd_adaptor_build\README.Windows
文件 352 2016-06-04 19:43 edem_cfd_adaptor_build\SConstruct
目录 0 2019-08-30 15:45 edem_cfd_adaptor_build\src\
文件 13098 2019-08-01 11:11 edem_cfd_adaptor_build\src\AdaptorInterface.cpp
文件 8794 2016-06-04 19:43 edem_cfd_adaptor_build\src\AdaptorInterface.h
文件 3456 2019-08-01 11:11 edem_cfd_adaptor_build\src\CAdaptorQuaternion.cpp
文件 3008 2016-06-04 19:43 edem_cfd_adaptor_build\src\CAdaptorQuaternion.h
文件 1185 2016-06-04 19:43 edem_cfd_adaptor_build\src\CCellAndThreadData.cpp
文件 2200 2016-06-04 19:43 edem_cfd_adaptor_build\src\CCellAndThreadData.h
文件 5355 2016-06-04 19:43 edem_cfd_adaptor_build\src\CFluentParticleData.cpp
文件 3536 2016-06-04 19:43 edem_cfd_adaptor_build\src\CFluentParticleData.h
文件 6408 2016-06-04 19:43 edem_cfd_adaptor_build\src\CParticleData.cpp
文件 5311 2016-06-04 19:43 edem_cfd_adaptor_build\src\CParticleData.h
文件 834 2016-06-04 19:43 edem_cfd_adaptor_build\src\SConsc
文件 3414 2016-06-04 19:43 edem_cfd_adaptor_build\src\udfParticle.h
目录 0 2019-08-30 15:45 edem_cfd_adaptor_build\win64\
文件 34387 2019-08-01 11:28 edem_cfd_adaptor_build\win64\AdaptorInterface.obj
文件 11298 2019-08-01 11:28 edem_cfd_adaptor_build\win64\CAdaptorQuaternion.obj
文件 709 2019-08-01 11:28 edem_cfd_adaptor_build\win64\CCellAndThreadData.obj
文件 192158 2019-08-01 11:28 edem_cfd_adaptor_build\win64\CFluentParticleData.obj
文件 163782 2019-08-01 11:28 edem_cfd_adaptor_build\win64\CParticleData.obj
............此处省略73个文件信息
相关资源
- 探索LHC耦合中的CP振动效应
- 在ILC上探测希格斯-费米子和希格斯
- 使用卷积神经网络在e + e-对撞机上改
- 非SUSY SO10GUT中具有规范耦合统一和质
- 量规将统一与隐藏的光子和微电荷暗
- 使用ATLAS检测器,在s = 7 TeV的pp碰撞中
- 在LHeC上搜索带有极化$ e $ -Beam的异常
- 在s $$ \\ sqrt {s} $$ = 13 TeV的质子-质子碰
- 作为轻夸克汤河耦合的探针,独特的
- 顶夸克异常耦合的全局约束
- 在单个T通道顶夸克生产中在LHC上探测
- 通过异常耦合将顶夸克与光子联合生
- 通过单顶夸克生产与LHC的光子关联来
- SO32杂散弦理论中的规范与磁通量耦合
- 杂散弦论中的全纯Yukawa耦合
- IIB超弦理论中的超杨格-米尔斯,陈恩
- 通过变化的电磁耦合,大型强子对撞
- pp→Wγγ和pp→Zγ&gam
- 风味动态域壁中lt;mathgt; mrow mn 2 / mn
- 各向异性晶格上的强耦合晶格QCD
- 强耦合晶格QCD中手性相变在有限密度
- KLZ模型中介子的五维Lorentz违反非最小
- SU2Chern-Simons理论与竞争标量耦合
- 非最小麦克斯韦耦合的高阶导数标量
- 数字隔离器三个关键要素的特点及相
- 手性摄动理论中轴-核子耦合的精确计
- 2UED模型中的希格斯四次耦合和中微子
- GIS和FLAC3D耦合下的采场上覆岩层破坏
- 深部高应力软岩巷道让抗耦合控制技
- pageOfficeDemo
评论
共有 条评论