青铜峡市尊洲混凝土有限公司
你的位置:青铜峡市尊洲混凝土有限公司 > 新闻资讯 >
postProcess提供了稠密的功能
发布日期:2024-07-03 16:57    点击次数:117

postProcess提供了稠密的功能

本文浅易先容OpenFOAM中postProcess的使用。

在OpenFOAM中,不错使用步调postProcess对筹谋得到的基础效果数据进行处罚以赢得新的物理场数据。

postProcess不错看成单独的步调运转,如底下的体式:

postProcess -func vorticity

也不错看成求解器参数在求解筹谋经由中运转,如底下的调用体式:

simpleFoam -postprocess -func vorticity

需要肃穆的是,无论罗致何种调用神志,postProcess齐所以后处罚的体式运转。不外以求解器参数的体式运转的话,不错造访求解器参数。

postProcess提供了稠密的功能,不错在结尾中输入:

postProcess -list

输出效果如下图所示:

可用的functionObjects:74(  CourantNo  Lambda2  MachNo  PecletNo  Q  Qdot  R  XiReactionRate  add  age  boundaryProbes  cellMax  cellMin  components  ddt  div  dsmcFields  enstrophy  faceMax  faceMin  faceZoneAverage  fieldAverage  flowRateFaceZone  flowRatePatch  flowType  forceCoeffsCompressible  forceCoeffsIncompressible  forcesCompressible  forcesIncompressible  grad  interfaceHeight  internalProbes  log  mag  magSqr  minMaxComponents  minMaxMagnitude  particles  patchAverage  patchIntegrate  phaseMap  phaseScalarTransport  pressureDifferencePatch  pressureDifferenceSurface  probes  randomise  residuals  scalarTransport  scale  shearStress  singleGraph  staticPressure  stopAtClockTime  stopAtFile  streamFunction  streamlines  subtract  surfaces  time  totalEnthalpy  totalPressureCompressible  totalPressureIncompressible  turbulenceFields  turbulenceIntensity  volFlowRateSurface  vorticity  wallHeatFlux  wallHeatTransferCoeff  wallShearStress  writeCellCentres  writeCellVolumes  writeObjects  writeVTK  yPlus  )

postProcess源代码位于旅途$FOAM_UTILITIES/postProcessing/postProcess中,在旅途$FOAM_SRC/functionObjects中不错找到简略被处罚的物理场。

底下以案例体式进行先容。如底下的案例行使求解器rhoPimpleFoam筹谋陡坡激波,首页-利西艾仓储有限公司筹谋效果中惟一基本物理量T、p、U、rho等。如底下为速率散布。

首页-凯加奥咖啡有限公司

图片

此时不错使用大呼筹谋一些繁衍物理量, 台山市肯旺蚕丝有限公司如下所示:

# 筹谋得到马赫数rhoPimpleFoam -postProcess -func MachNo

得到的马赫数如下图所示。

图片

相一样的神志不错得到其他的物理量:

# 得到库朗数rhoPimpleFoam -postProcess -func CourantNo# 得到壁面剪切应力rhoPimpleFoam -postProcess -func wallShearStress# 得到0s技艺的密度值rhoPimpleFoam -postProcess -func 'writeObjects(rho)' -time 0# 得到涡量值rhoPimpleFoam -postProcess -func vorticity# 孤苦步调神志得到涡量值postProcess -func vorticity# 行使外部字典进行数据赢得rhoPimpleFoam -postProcess -dict system/externalFunctionObject -latestTime

一些相比常用的调用体式包括:

# 赢得速率梯度postProcess -func 'grad(U)'# 赢得速率重量postProcess -func 'components(U)'# 赢得速率值postProcess -func 'mag(U)'# 筹谋速率矢量的闲居postProcess -func 'magSqr(U)'# 筹谋总压postProcess -func 'totalPressureCompressible(rho,
首页-和昌宝染料有限公司U,p)' -noZero# 筹谋速率矢量的散度postProcess -func 'div(U)' -time 500:1000# 筹谋最终技艺的速率梯度幅值postProcess -func 'mag(grad(U))' -latestTime

也不错使用器具postProcess筹谋指定界限上的物理量平均值,机箱如底下的调用体式:

# 得到最终技艺界限inlet上的压力平均值postProcess -func 'patchAverage(name=inlet,p)' –latestTime# 得到最终技艺界限outlet上的速率平均值postProcess -func 'patchAverage(name=outlet,U)' –latestTime# 得到进口界限上压力积分值postProcess -func 'patchIntegrate(name=inlet,p)' –latestTime# 得到出口界限上速率积分值postProcess -func 'patchIntegrate(name=outlet,U)' -latestTime 

OpenFOAM中提供了一些将筹谋效果养息为其他神态的器具,这些器具源代码位于旅途$FOAM_UTILITIES/postProcessing/dataConversion,相比常用的器具包括:

foamDataToFluentfoamToEnsightfoamToEnsightPartsfoamToGMVfoamToTecplot360foamToTetDualMeshfoamToVTKsmapToFoam

更多的信息不错检验源代码机箱,或者使用-help参数进行检验。

本站仅提供存储办事,通盘实践均由用户发布,如发现存害或侵权实践,请点击举报。