openfoam

基于Cotherm的自动化热流耦合计算及热设计优化

纵然是瞬间 提交于 2020-08-12 14:19:16
对于整车热害问题,目前高效且满足工程应用精度要求的方案当属TAITherm+CFD工具的联合仿真解决方案,这种方案的相对简便性与高效性也正在为众多主机厂带来开发时间的缩短和试验成本的减少,在产品开发的过程中发挥了仿真的价值。 该方案的主要思路是发挥TAITherm在热辐射及长瞬态工况计算方面快速准确的优势,同时通过简化CFD模型(创建流体域模型,无需创建固体域模型),从而来实现简化建模工作量并提高整体求解效率的目的,以满足实际工程应用的需要。以上介绍的热流耦合方案的主要思路可参见下图: 理论上,大家只要具备热分析工具(TAITherm)和CFD工具就可以完成上述的热流耦合分析过程。具体的实现方式分手动进行和自动流程管理。 手动进行热流耦合的方式是这样的: 1.导出TAITherm壁面温度计算结果; 2.在StarCCM+中导入热模型网格; 3.在StarCCM+中导入壁面温度数据; 4.在StarCCM+中将壁面温度数据映射到流体边界网格上; 5.在StarCCM+中将映射的壁面温度数据设置到对应的边界条件上(各边界分别设置); 6.待StarCCM+的流场重新计算稳定后,将热流场的对流换热系数和流体温度数据映射到热模型的网格上; 7.导出StarCCM+热流场的计算结果; 8.在TAITherm中导入热流场的计算结果; 9.待温度场重新求解完成后,再次重复1-8步的过程

Using Python scripting to plot integration of a variable over a line versus time in ParaView

社会主义新天地 提交于 2019-12-14 04:04:48
问题 I have some OpenFOAM simulation results (you may use the official can.ex2 model which can be downloaded from here). What I want to do is: open a file, load the original data as decomposed case (which can't be applied to the case above) apply a Calculator filter one a specific variable (e.g. DISP*3.14*coordsX , I used 3.14 because for the love of god I can't find Pi!) apply filter plot over line [x1,y1,z1] to [x2,y2,z2] integrate the output of 2 over the line defined in 3 in each time step

OpenFoam Win 10, Ubuntu Bash installing fails

十年热恋 提交于 2019-12-11 04:55:03
问题 I am trying to install OpenFoam on ubuntu bash on Win 10. I am following these steps: OpenFoam installation on win 10 Ubuntu bash at this step source $HOME/.bashrc I get the following error: -bash: eval: line 38: syntax error near unexpected token `(' -bash: eval: line 38: `PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program:Files:(x86)/Common:Files/Oracle/Java/javapath_target_275852031:/mnt/c/Windows/System32:/mnt/c/DAYSIM/lib:/mnt/c

Cannot connect to X server using docker on OS X - Part II

与世无争的帅哥 提交于 2019-12-08 03:51:02
问题 I'm having the same difficulty as the one expressed here: Cannot connect to X server using docker on OSX I'm very confused about the recommended instructions in the above link (I'm a novice on docker), and I'm hoping to get clarification about the following: 1) Do we "touch foo.foam" in a regular OS X terminal or do we touch it in the docker terminal; in my case, following "docker run -ti openfoamplus/of_v30plus_rhel66 /bin/bash" 2) You suggest running paraview (mine is the most recent) just

Cannot connect to X server using docker on OS X - Part II

你。 提交于 2019-12-06 14:51:08
I'm having the same difficulty as the one expressed here: Cannot connect to X server using docker on OSX I'm very confused about the recommended instructions in the above link (I'm a novice on docker), and I'm hoping to get clarification about the following: 1) Do we "touch foo.foam" in a regular OS X terminal or do we touch it in the docker terminal; in my case, following "docker run -ti openfoamplus/of_v30plus_rhel66 /bin/bash" 2) You suggest running paraview (mine is the most recent) just like any other Mac app. So, basically, to double-click on paraview in the Applications folder? But when

Cannot connect to X server using docker on OSX

冷暖自知 提交于 2019-12-02 05:10:35
问题 I am trying to install openFoam on Mac OS X 10.10.5 (http://www.openfoam.com/download/install-binary.php) by using Docker-toolbox. I can do without problems all the suggested steps, but then, when I try to run the example included in the installation guide, I cannot open paraFoam, since it returns the following error: paraview: cannot connect to X server I have also installed XQuartz but it doesn't seem to help much! 回答1: Why don't you get the latest paraview from Kitware. It has a native

openfoam耦合liggghts安装

你离开我真会死。 提交于 2019-11-30 14:36:18
本次安装基于新安装的ubuntu18.04LTS桌面版系统,用户名为ubuntu,此前未安装其他软件(进行了系统提醒的更新),安装时间为2019年9月。 安装前需确认需要安装的OpenFOAM版本,CFDEM coupling对支持的OpenFOAM版本有要求,从CFDEM官网查看而后选择要安装的OpenFOAM版本。 以下出现的命令和添加的环境变量可能需要按照自己文件路径的情况进行调整。 1.openfoam的安装 基本按照官网(https://openfoam.org/download/source/)的教程进行分为: (1)安装编译所需软件 先检查是否安装gcc,终端输入 gcc –version ,如未安装,sudo apt install gcc命令安装,需要4.8版本及以上,安装后可再次gcc –version查看版本 Install general packages for OpenFOAM 命令为: sudo apt-get install build-essential flex bison git-core cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt

OpenFOAM 中的壁面函数(一)

China☆狼群 提交于 2019-11-28 12:54:47
原文引用 https://www.dazhuanlan.com/2019/08/25/5d62204cc700a/ 本系列来看看 OpenFOAM 中的壁面函数。壁面函数的本质,是边界条件。这里主要来看看壁面函数的基本原理,OpenFOAM 中实现了的壁面函数,以及选择壁面函数的一些参考依据。 1. 壁面函数的基本原理 湍流模拟中,需要对近壁区域进行处理。一般来讲,壁面处理方法包含两类,一类是使用很细的网格,使靠近壁面的第一层网格在粘性层内($y^+ 30$),然后用经验公式来将粘性层和对数区关联起来。下图是一个典型的壁面附近的 $U^+ text{-} y^+$ 关系图。 图片来自 Wikipedia:Law of the wall 。 在粘性层,满足如下关系 $$ u^+ = y^+ $$ 而在对数区,则满足 $$ U^+ = frac{1}{kappa}ln(Ey^+) $$ 其中 $U^+ = U/u_tau$, $y^+ = yu_tau/nu$, $u_tau = sqrt{tau_w/rho}$,$kappaapprox 0.41$,$E approx 9.8$,$y$ 表示与壁面的距离。1$),然后里可以直接解析到粘性层的低雷诺湍流模型;另一类,不直接解析粘性层,而是将第一层网格设置在对数区($y^+> 本篇以标准壁面函数法来讨论一下壁面函数方法的基本原理