#!/bin/sh
timestep=20
for processor in processor*;
do
sed -i 's/codedFixedValue/fixedValue/' $processor/$timestep/turbulenceProperties:R
sed -i 's/name.*;/ /' $processor/$timestep/turbulenceProperties:R
done
dyfluid@dyfluid-virtual-machine:~/OpenFOAM/OpenFOAM-8/applications/utilities/postProcessing/dataConversion/foamToTecplot360$ wmake
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
wmakeLnInclude error: base directory /home/dyfluid/OpenFOAM/ThirdParty-8/tecio/tecsrc/ does not exist
Making dependency list for source file foamToTecplot360.C
could not open file TECIO.h for source file foamToTecplot360.C due to No such file or directory
could not open file MASTER.h for source file foamToTecplot360.C due to No such file or directory
could not open file GLOBAL.h for source file foamToTecplot360.C due to No such file or directory
Making dependency list for source file vtkMesh.C
Making dependency list for source file tecplotWriter.C
could not open file TECIO.h for source file tecplotWriter.C due to No such file or directory
could not open file MASTER.h for source file tecplotWriter.C due to No such file or directory
could not open file GLOBAL.h for source file tecplotWriter.C due to No such file or directory
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/dyfluid/OpenFOAM/ThirdParty-8/tecio/tecsrc/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/lagrangian/basic/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/finiteVolume/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/dynamicMesh/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/meshTools/lnInclude -IlnInclude -I. -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude -I/home/dyfluid/OpenFOAM/OpenFOAM-8/src/OSspecific/POSIX/lnInclude -fPIC -c tecplotWriter.C -o /home/dyfluid/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecplotWriter.o
In file included from tecplotWriter.C:26:
tecplotWriter.H:39:10: fatal error: TECIO.h: 没有那个文件或目录
39 | #include "TECIO.h"
| ^~~~~~~~~
compilation terminated.
make: *** [/home/dyfluid/OpenFOAM/OpenFOAM-8/wmake/rules/General/transform:26:/home/dyfluid/OpenFOAM/OpenFOAM-8/platforms/linux64GccDPInt32Opt/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecplotWriter.o] 错误 1
dyfluid@dyfluid-virtual-machine:~/OpenFOAM/OpenFOAM-8/applications/utilities/posttProcessing/tProcessing/dataCotProttProcessing/dataConversion/foamToTecplot360$
我在计算固体冲压发动机内两相流颗粒二次燃烧时,C颗粒燃烧采用openfoam自带的模型,B颗粒的燃烧自己编写的表面燃烧模型,但计算时总是在空气和颗粒接触不久之后发散。MaxCo为1时,自适应时间步长大概在2e-6s左右,多次尝试后存在以下几种情况:
(1)两种颗粒的Cloud都启用表面燃烧时,不管如何调整species的Cp等物性参数,均会在0.0068s时出现Energy -> temperature conversion failed to converge,输出的报错信息显示,温度在1000±1K之间来回振荡;
(2)两种颗粒的Cloud都启用表面燃烧,但B颗粒所有反应的速率都设为0时,计算在0.0116s发散,从报错信息来看,应该是ReactingMultiphaseParcel中的calc函数调用后,MomentumParcel的move()函数计算出错;
(3)C颗粒启用表面燃烧模型,B颗粒的表面燃烧模型选择none,此时计算不会发散。
Total viscous power in the domain (volume integral): -1.50451907
Total integrated tau : gradU: 1.48509576
Total integrated viscous power (surface): 0.00384099619