|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
/******************************************************************
The acceleration in the x-axis direction changes with time
*******************************************************************/
#include "udf.h"
#define g 9.8
DEFINE_SOURCE(accelaration_source, c, t, dS, eqn)
{
real x[ND_ND];
real source;
real current_time;
current_time = RP_Get_Real("flow-time");
source = -0.125*current_time*g+0.5*g;
source=x[0];
dS[eqn] = 0.0;
return source;
}
想给罐体一个在吗X轴方向上的随时间变化的加速度曲线,但解释后初始化就出现了下面问题,请问怎么解决
Node 999999: Process 5784: Received signal SIGSEGV.
==============================================================================
MPI Application rank 0 exited before MPI_Finalize() with status 2
The fl process could not be started.
Migrating partitions to compute-nodes.
>> 7 Active Partitions:
P Cells I-Cells Cell Ratio Faces I-Faces Face Ratio Neighbors Load
0 177846 2721 0.015 1075495 7826 0.007 5 1
1 180151 2907 0.016 1089815 8333 0.008 5 1
2 187075 2686 0.014 1131034 7711 0.007 4 1
3 174871 2768 0.016 1057724 7945 0.008 4 1
4 179015 2415 0.013 1072392 6897 0.006 3 1
5 197591 1487 0.008 1127538 4228 0.004 2 1
6 178992 2136 0.012 1071748 6124 0.006 3 1
----------------------------------------------------------------------
Collective Partition Statistics: Minimum Maximum Total
----------------------------------------------------------------------
Cell count 174871 197591 1275541
Mean cell count deviation -4.0% 8.4%
Partition boundary cell count 1487 2907 17120
Partition boundary cell count ratio 0.8% 1.6% 1.3%
Face count 1057724 1131034 7601214
Mean face count deviation -2.9% 3.8%
Partition boundary face count 4228 8333 24532
Partition boundary face count ratio 0.4% 0.8% 0.3%
Partition neighbor count 2 5
----------------------------------------------------------------------
Partition Method Metis
Stored Partition Count 7
Done.
|
|