FLUENT用UDF定义边界条件,入口流体喷射0.4s,但是用非稳态计算5s,看喷射后的流体的运动过程.请问大家用udf怎么实现只喷射0.4s呢?# include "udf.h"DEFINE_PROFILE (inlet_velocity,thread,time){real flow_time;face_t f;
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 10:05:00
FLUENT用UDF定义边界条件,入口流体喷射0.4s,但是用非稳态计算5s,看喷射后的流体的运动过程.请问大家用udf怎么实现只喷射0.4s呢?# include "udf.h"DEFINE_PROFILE (inlet_velocity,thread,time){real flow_time;face_t f;
FLUENT用UDF定义边界条件,入口流体喷射0.4s,但是用非稳态计算5s,看喷射后的流体的运动过程.
请问大家用udf怎么实现只喷射0.4s呢?
# include "udf.h"
DEFINE_PROFILE (inlet_velocity,thread,time)
{
real flow_time;
face_t f;
begin_f_loop(f,thread)
{
flow_time=CURRENT_TIME;
if(flow_time0.4)
F_PROFILE(f,thread,time)=0;
}
end_f_loop(f,thread)
}
FLUENT用UDF定义边界条件,入口流体喷射0.4s,但是用非稳态计算5s,看喷射后的流体的运动过程.请问大家用udf怎么实现只喷射0.4s呢?# include "udf.h"DEFINE_PROFILE (inlet_velocity,thread,time){real flow_time;face_t f;
其实没太大的问题,稍微修改下if语句
# include "udf.h"
DEFINE_PROFILE (inlet_velocity,thread,time)
{
real flow_time;
face_t f;
begin_f_loop(f,thread)
{
flow_time=CURRENT_TIME;
if(flow_time