24小时热门版块排行榜    

查看: 2791  |  回复: 5
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

barcezp

新虫 (初入文坛)

[求助] 编写流量入口随时间变化的UDF 已有1人参与

定义的是流量入口,在稳态模拟后,想定义入口流量速度从 4kg/s降到0之后保持不变。。。初学者,看了几天也没摸着门道。
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

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

xiaobu178

铁虫 (初入文坛)

引用回帖:
2楼: Originally posted by dayu7973 at 2015-04-06 23:20:19
DEFINE_PROFILE(mass_inlet,t,i)
{
face_t f;
real current_time, mass, total_time;
current_time = CURRENT_TIME;
total_time=xx;
if (current_time<total_time)
{
    mass=4*(1-current_time/total ...

请问楼主解决这个问题了吗
4楼2015-09-28 15:52:26
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 6 个回答

dayu7973

铁虫 (初入文坛)

【答案】应助回帖

感谢参与,应助指数 +1
DEFINE_PROFILE(mass_inlet,t,i)
{
face_t f;
real current_time, mass, total_time;
current_time = CURRENT_TIME;
total_time=xx;
if (current_time<total_time)
{
    mass=4*(1-current_time/total_time);
}
else
{
    mass=0;
}
F_PROFILE(f,t,position) = mass;
}

大致就这么个样子,我没调试,你可以编译调试一下试试
2楼2015-04-06 23:20:19
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dayu7973

铁虫 (初入文坛)

最后一行 F_PROFILE(f,t,position) = mass; 改为F_PROFILE(f,t,i) = mass;
3楼2015-04-06 23:22:09
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

xiaobu178

铁虫 (初入文坛)

引用回帖:
2楼: Originally posted by dayu7973 at 2015-04-06 23:20:19
DEFINE_PROFILE(mass_inlet,t,i)
{
face_t f;
real current_time, mass, total_time;
current_time = CURRENT_TIME;
total_time=xx;
if (current_time<total_time)
{
    mass=4*(1-current_time/total ...

请问楼主解决这个问题了吗
5楼2015-09-28 15:52:32
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 290求调剂 +9 材料专硕调剂; 2026-02-28 11/550 2026-03-01 17:21 by sunny81
[考研] 0856化工专硕求调剂 +10 董boxing 2026-03-01 10/500 2026-03-01 17:19 by 刘兵
[考研] 材料类求调剂 +9 wana_kiko 2026-02-28 10/500 2026-03-01 17:01 by sunny81
[考研] 高分子化学与物理调剂 +6 好好好1233 2026-02-28 10/500 2026-03-01 16:53 by caszguilin
[考研] 321求调剂一志愿东北林业大学材料与化工英二数二 +4 虫虫虫虫虫7 2026-03-01 7/350 2026-03-01 16:52 by caszguilin
[考研] 0856材料求调剂 +4 麻辣鱿鱼 2026-02-28 4/200 2026-03-01 16:51 by caszguilin
[考研] 化工专硕342,一志愿大连理工大学,求调剂 +3 kyf化工 2026-02-28 4/200 2026-03-01 16:49 by yywzz
[考研] 285求调剂 +8 满头大汗的学生 2026-02-28 8/400 2026-03-01 16:47 by caszguilin
[考研] 313求调剂 +3 水流年lc 2026-02-28 3/150 2026-03-01 16:01 by 新能源达人
[考研] 材料化工调剂 +9 今夏不夏 2026-03-01 10/500 2026-03-01 16:01 by hmn_wj
[考研] 0856调剂 +4 刘梦微 2026-02-28 4/200 2026-03-01 15:35 by 吸一口猫气
[考研] 化工299分求调剂 一志愿985落榜 +4 嘻嘻(*^ω^*) 2026-03-01 4/200 2026-03-01 13:15 by wang_dand
[考研] 311求调剂 +9 南迦720 2026-02-28 10/500 2026-03-01 10:55 by sunny81
[硕博家园] 2025届双非化工硕士毕业,申博 +3 更多的是 2026-02-27 4/200 2026-03-01 10:04 by ztg729
[论文投稿] 求助coordination chemistry reviews 的写作模板 10+3 ljplijiapeng 2026-02-27 4/200 2026-03-01 09:07 by babero
[考研] 298求调剂 +5 axyz3 2026-02-28 5/250 2026-03-01 06:45 by 刘兵
[考研] 307求调剂 +4 73372112 2026-02-28 6/300 2026-03-01 00:04 by ll247
[考研] 304求调剂 +3 52hz~~ 2026-02-28 5/250 2026-03-01 00:00 by 52hz~~
[考博] 26申博 +4 想申博! 2026-02-26 4/200 2026-02-28 21:37 by limorning
[考研] 0856材料求调剂 +10 hyf hyf hyf 2026-02-28 11/550 2026-02-28 18:50 by 无际的草原
信息提示
请填处理意见