24小时热门版块排行榜    

查看: 260  |  回复: 2

lesliexxy

新虫 (初入文坛)

[求助] 求助udf非稳态函数编写出问题 急!!谢谢!!

求助udf非稳态函数编写出问题
代码如下:
#include "udf.h"

DEFINE_PROFILE(inlet_airflow, thread, position)

{      
face_t f;
real t = CURRENT_TIME;
real m;
int a;
a=t/6;
m=t-6*a;
{
if(m>=0&&m<=0.5)
       {
begin_f_loop(f, thread)
{  F_PROFILE(f, thread, position)=-0.6*m;}
end_f_loop(f, thread);return; }
  

else if (m>0.5&&m<=2)
  {
begin_f_loop(f, thread)
{F_PROFILE(f, thread, position) =-0.3;}
end_f_loop(f, thread);
return;}
   

else if (m>2&&m<=2.5)
{
begin_f_loop(f, thread)
{ F_PROFILE(f, thread, position) =0.6*m-1.5;}
end_f_loop(f, thread);
return;}  
  

else if (m>2.5&&m<=3)
{
begin_f_loop(f, thread)
{ F_PROFILE(f, thread, position)=0;}
end_f_loop(f, thread);return;}
   

else if (m>3&&m<=3.5)
        {
begin_f_loop(f, thread)
{ F_PROFILE(f, thread, position)=0.6*m-1.8;}
end_f_loop(f, thread);return;}
   

else if (m>3.5&&m<=5)
   {
begin_f_loop(f, thread)
{F_PROFILE(f, thread, position) =0.3;}
end_f_loop(f, thread); return;}


else if (m>5.0&&m<=5.5)
{
begin_f_loop(f, thread)
{ F_PROFILE(f, thread, position)=-0.6*m+3.3;}
end_f_loop(f, thread);
return;}

else (m>5.5&&m<=6)
{
begin_f_loop(f, thread)
{F_PROFILE(f, thread, position)=0;}
end_f_loop(f, thread);return;}
}
}
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

lesliexxy

新虫 (初入文坛)

错误提示和所编译的非稳态周期函数图!!!!

希望有人能解答一下萌新,谢谢!!!

» 本帖附件资源列表

  • 欢迎监督和反馈:小木虫仅提供交流平台,不对该内容负责。
    本内容由用户自主发布,如果其内容涉及到知识产权问题,其责任在于用户本人,如对版权有异议,请联系邮箱:xiaomuchong@tal.com
  • 附件 1 : Screen_Shot_2017-11-29_at_11.02.00.png
  • 2017-11-29 11:18:00, 87.22 K
  • 附件 2 : WechatIMG94.png
  • 2017-11-29 11:18:06, 5.65 K
2楼2017-11-29 11:18:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

lesliexxy

新虫 (初入文坛)

函数和错误
求助udf非稳态函数编写出问题 急!!谢谢!!
Screen Shot 2017-11-29 at 11.02.00.png


求助udf非稳态函数编写出问题 急!!谢谢!!-1
WechatIMG94.png

3楼2017-11-29 11:19:57
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 lesliexxy 的主题更新
信息提示
请填处理意见