| 查看: 2757 | 回复: 12 | |||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | |||
[求助]
给fluent换背景颜色,温度梯度值为什么不显示了 已有3人参与
|
|||
|
给fluent换背景颜色,温度梯度值为什么不显示了,之前fluent的背景颜色是浅蓝色的,但是后来我把背景颜色换成了白色的,然后我温度云图里的温度梯度值就没了,如下图所示。还能把温度梯度值调回来吗? bai.png lan.png |
» 猜你喜欢
全日制(定向)博士
已经有5人回复
假如你的研究生提出不合理要求
已经有10人回复
萌生出自己或许不适合搞科研的想法,现在跑or等等看?
已经有4人回复
Materials Today Chemistry审稿周期
已经有4人回复
参与限项
已经有3人回复
实验室接单子
已经有4人回复
对氯苯硼酸纯化
已经有3人回复
求助:我三月中下旬出站,青基依托单位怎么办?
已经有12人回复
所感
已经有4人回复
要不要辞职读博?
已经有7人回复
» 本主题相关价值贴推荐,对您同样有帮助:
Fluent中如何限定金属的上限温度?
已经有11人回复
求助有关FLUENT里温度变化幅值的输出
已经有10人回复
fluent结果不符合能量守恒
已经有4人回复
FLUENT模拟时如何设置室外温度?(急,能解决的话金币全送了)
已经有6人回复
新手求助,Fluent打开文件什么都显示不出来!
已经有4人回复
fluent 14.5中,可以一个Interface对多个Interface吗?
已经有4人回复
解释型UDF如何调用温度梯度
已经有9人回复
fluent 仿真温度出现负值
已经有9人回复
关于Fluent中压力梯度显示的问题
已经有4人回复
fluent中UDF编译的问题!
已经有11人回复
亚松弛因子(URFs)对Fluent对流传热仿真结果会有很大影响么
已经有4人回复
fluent输出温度场最大值最小值和平均值
已经有4人回复
fluent模拟结果中的传热系数怎么求
已经有7人回复
我用fluent做的三维模型,内部显示不出来怎么办?
已经有13人回复
求助!fluent如何提取超过20个点的温度随时间变化数据,monitor里放不下啊~
已经有15人回复
fluent传热问题
已经有7人回复
结构-热分析时如何施加温度梯度载荷?
已经有6人回复
fluent传热结果没有温度梯度 求原因
已经有20人回复
Fluent模拟固体本身的温度分布场
已经有20人回复
【求助】fluent的传热问题,计算结果有没有问题,请大家帮忙看看。【已解决】
已经有10人回复
【求助】fluent中固体与流体区域间的interior界面,出现警告提示该怎么解决
已经有6人回复
【答案】应助回帖
感谢参与,应助指数 +1
|
求助,下面的程序是什么意思?中间的数据我省略了,谢过! /************************************************************************************** UDF: for specifying a time-dependent velocity profile boundary condition: u(t) - interpolated via cubic spine from measurements by Traykovski written by Houshuo Jiang on August 17, 2006 ***************************************************************************************/ #include "udf.h" DEFINE_PROFILE(unsteady_flow, thread, position) { /* ttt[]: sampled times */ /* u[]: sampled streamwise flow velocity */ /* d2_u_dt2[]: calculated 2nd time derivative of u */ /* start time = 0.12499359 , end time = 602.12499000 */ static real ttt[4817]= { 0.00000000E+00, 0.12499430E+00, 0.24999865E+00, 0.37499294E+00, 0.49999729E+00, 0.62500164E+00, 0.74999593E+00, 0.87500029E+00, 0.99999461E+00, 0.11249989E+01, 0.12500033E+01, 0.13749976E+01, 0.14999919E+01, 0.16249962E+01, 0.17500006E+01, 0.18749949E+01, 0.19999992E+01, 0.21249935E+01, 0.22499978E+01, }; static real u[4817]= { 0.29486706E+00, 0.25832370E+00, 0.22072441E+00, 0.18439429E+00, 0.14780788E+00, 0.11332307E+00, 0.80134080E-01, 0.49663854E-01, 0.21209121E-01,-0.60646123E-02, -0.28923945E-01,-0.49841599E-01,-0.66707764E-01,-0.79936611E-01,-0.88913036E-01, 0.26710739E+00, 0.27723406E+00, 0.28560768E+00, 0.29210729E+00, 0.29621414E+00, 0.29912153E+00, 0.30260917E+00 }; static real d2_u_dt2[4817]= { 0.85972525E-01,-0.17194505E+00, 0.19746624E+00,-0.13169408E+00, 0.23201899E+00, 0.10576336E-01, 0.22222984E+00, 0.14550020E+00,-0.31192043E-01, 0.43361966E+00, -0.82670364E-02, 0.34437811E+00, 0.18666827E+00, 0.30615838E+00, 0.22151801E+00, 0.29484003E+00, 0.38174390E+00, 0.11195380E+00, 0.17885390E+00, 0.26852023E+00, 0.21346864E+00, 0.30599166E-01, 0.10479063E+00, 0.10472997E+00,-0.22994860E-01, 0.16925363E-01,-0.11893041E+00,-0.12963144E+00,-0.57996749E-01,-0.38344444E-01, -0.23898451E+00,-0.79638780E-01,-0.11563157E+00,-0.17745479E+00,-0.93369114E-01, 0.90338604E-01,-0.45169302E-01 }; int n=4817; /* variables for the cubic spline algorithm */ int klo,khi,k; real h,a,b; /* variables for printing out messages */ /* variables for the FLUENT UDF settings */ face_t ft; real t, xvelocity; t = CURRENT_TIME; /* By means of bisection to locate the right place for t in the table */ klo=1; khi=n; while (khi-klo > 1) { k=(khi+klo) >> 1; if (ttt[k-1] > t) khi=k; else klo=k; } /* klo and khi now bracket the input value of t. */ /* Transfer from unit-offset to zero-offset. */ klo=klo-1; khi=khi-1; h=ttt[khi]-ttt[klo]; a=(ttt[khi]-t)/h; b=(t-ttt[klo])/h; /* Cubic spline polynomial is now evaluated to obtain the velocity at time t. */ xvelocity = a*u[klo]+b*u[khi]+((a*a*a-a)*d2_u_dt2[klo]+(b*b*b-b)*d2_u_dt2[khi])*(h*h)/6.0; Message("current time = %15.8e s, u = %15.8e m/s\n", t, xvelocity); /* \n denotes a new line */ begin_f_loop(ft, thread) { F_PROFILE(ft, thread, position) = xvelocity; } end_f_loop(ft, thread) } /***************************************************************** UDF for volume-integrating k and epsilon, for calculating the total volume, and for writing them into a file. Exporting U,W at a cell about 50cm above the ripple crest to a file. written by Houshuo Jiang on August 25, 2006. ******************************************************************/ DEFINE_ON_DEMAND(tke_epsilon_pointuw) { real sum_tke=0.0, sum_epsilon=0.0, sum_volume=0.0; real flowtime, xx[ND_ND]; real x0_ripple=-0.39102757, x1_ripple=0.37087719; /* define the two sides of the ripple interested */ real cellx0=0.0450395, cellx1=0.05541; /* define the streamwise bound of the cell */ real cellz0=-0.2933, cellz1=-0.2639; /* define the vertical bound of the cell */ real cellu=0.0,cellw=0.0,cellcentroidx=0.0,cellcentroidz=0.0; Domain *d; /* declare domain pointer since it is not passed as an argument to the DEFINE macro */ Thread *t; cell_t c; FILE *fp1, *fp2; d = Get_Domain(1); /* returns fluid domain pointer */ flowtime = CURRENT_TIME; /* Integrate TKE, epsilon, and export the cell variables */ thread_loop_c(t,d) { begin_c_loop(c,t) C_CENTROID(xx,c,t) if ((xx[0]>x0_ripple) && (xx[0]<x1_ripple)) { sum_tke += C_K(c,t)*C_VOLUME(c,t); sum_epsilon += C_MU_EFF(c,t)/C_R(c,t)*C_STRAIN_RATE_MAG(c,t)*C_STRAIN_RATE_MAG(c,t)*C_VOLUME(c,t); sum_volume += C_VOLUME(c,t); } if ( ( (xx[0]>cellx0) && (xx[0]<cellx1) ) && ( (xx[1]>cellz0) && (xx[1]<cellz1) ) ) { cellu = C_U(c,t); cellw = C_V(c,t); cellcentroidx = xx[0]; cellcentroidz = xx[1]; } end_c_loop(c,t) } fp1 = fopen("TKE_epsilon_vs_t.dat","a" ; /* open a file named TKE_epsilon_vs_t.dat in append mode and assign it to fp1 */fprintf(fp1,"%15.8e %15.8e %15.8e %15.8e\n", flowtime,sum_volume,sum_tke,sum_epsilon); fclose(fp1); fp2 = fopen("pointUW_vs_t.dat","a" ; /* open a file named pointUW_vs_t.dat in append mode and assign it to fp2 */fprintf(fp2,"%15.8e %15.8e %15.8e %15.8e %15.8e\n", flowtime,cellu,cellw,cellcentroidx,cellcentroidz); fclose(fp2); Message(" Success!" ;} |
3楼2015-03-28 20:04:18
2楼2015-03-28 19:58:21
4楼2015-03-28 20:05:40
luogangv
木虫 (小有名气)
- 应助: 50 (小学生)
- 金币: 2338.8
- 红花: 4
- 帖子: 280
- 在线: 117.5小时
- 虫号: 2711877
- 注册: 2013-10-10
- 专业: 工程热物理相关交叉领域
5楼2015-03-29 09:36:22












回复此楼
; /* open a file named TKE_epsilon_vs_t.dat in append mode and assign it to fp1 */