| 5 | 1/1 | 返回列表 |
| 查看: 2116 | 回復(fù): 4 | ||
| 當(dāng)前只顯示滿足指定條件的回帖,點擊這里查看本話題的所有回帖 | ||
missingchen新蟲 (小有名氣)
|
[求助]
怎樣設(shè)定拋物線速度,求定義拋物線速度入口的UDF 已有1人參與
|
|
求定義拋物線速度入口的UDF~![]() ![]() |

新蟲 (初入文壇)
新蟲 (小有名氣)
|
#include "udf.h" DEFINE_PROFILE(inlet_x_velocity, thread, position) { real x[ND_ND]; /* this will hold the position vector */ real y; face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); y = x[1]; F_PROFILE(f, thread, position) = 20 - y*y/(.0745*.0745)*20; } end_f_loop(f, thread) } |

銀蟲 (初入文壇)
|
#include "udf.h" DEFINE_PROFILE(inlet_x_velocity, thread, index) { real x[ND_ND]; real y,z; face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); // x=x[0]; y=x[1]; z=x[2]; F_PROFILE(f, thread, index) =0.2*(1-y*y/(0.01*0.01)-z*z/(0.01*0.01)); } end_f_loop(f, thread) } |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 材料專碩 085600求調(diào)劑 +5 | BBQ233 2026-03-30 | 5/250 |
|
|---|---|---|---|---|
|
[考研] 283求調(diào)劑(080500) +14 | A child 2026-03-27 | 14/700 |
|
|
[論文投稿]
arxiv背書人郵件求助
20+3
|
redcom 2026-03-25 | 7/350 |
|
|
[考研] 300求調(diào)劑,材料科學(xué)英一數(shù)二 +15 | leaflight 2026-03-24 | 15/750 |
|
|
[考研] 309求調(diào)劑 +10 | 誰不是少年 2026-03-29 | 10/500 |
|
|
[考研] 0703化學(xué) +13 | 妮妮ninicgb 2026-03-27 | 13/650 |
|
|
[考博] 26申博自薦 +6 | whh869393 2026-03-24 | 6/300 |
|
|
[考研] 277跪求調(diào)劑 +6 | 1915668 2026-03-27 | 10/500 |
|
|
[考研] 298求調(diào)劑 +3 | 種圣賜 2026-03-29 | 3/150 |
|
|
[考研] 322求調(diào)劑 +7 | 宋明欣 2026-03-27 | 7/350 |
|
|
[考研] 347求調(diào)劑 +3 | 山頂見α 2026-03-25 | 3/150 |
|
|
[考研] 一志愿南昌大學(xué)324求調(diào)劑 +7 | hanamiko 2026-03-27 | 7/350 |
|
|
[考研] 291求調(diào)劑 +6 | HanBeiNingZC 2026-03-24 | 6/300 |
|
|
[考研] 308求調(diào)劑 +7 | 墨墨漠 2026-03-25 | 7/350 |
|
|
[考研] 322求調(diào)劑 +4 | 我真的很想學(xué)習(xí) 2026-03-23 | 4/200 |
|
|
[考研] 求調(diào)劑 +3 | 劉柯@ 2026-03-24 | 4/200 |
|
|
[考研] 一志愿吉大071010,316分求調(diào)劑 +3 | xgbiknn 2026-03-27 | 3/150 |
|
|
[考研] 309求調(diào)劑 +4 | gajsj 2026-03-25 | 5/250 |
|
|
[考研] 277分求調(diào)劑,跨調(diào)材料 +3 | 考研調(diào)劑lxh 2026-03-24 | 3/150 |
|
|
[考研] 333求調(diào)劑 +3 | ALULU4408 2026-03-23 | 3/150 |
|