-
大小: 1.48MB文件类型: .gz金币: 1下载: 0 次发布日期: 2023-09-28
- 语言: 其他
- 标签: LBM multiphase
资源简介
含有LBM的多种模型,有D2Q9, D3Q19,做LBM不可多得的代码。
代码片段和文件信息
/***********************************************************************************/
/* LBMSim is a Lattice Boltzmann solver including a demo application. */
/* Copyright (C) 2006 Frank Deserno */
/* */
/* This program is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU General Public License */
/* as published by the Free Software Foundation; either version 2 */
/* of the License or (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program; if not write to the Free Software */
/* Foundation Inc. 51 Franklin Street Fifth Floor Boston MA 02110-1301 USA. */
/* */
/* Author‘s e-Mail: frank.deserno@informatik.uni-erlangen.de */
/***********************************************************************************/
#include “controlwidget.h“
#include “renderwidget.h“
#include “paintarea.h“
ControlWidget::ControlWidget( RenderWidget& renderWidget )
{
fileLogger << “creating control widget\n“;
Q_ASSERT( &renderWidget != 0 );
_renderWidget = &renderWidget;
_fineLayout = new QGridLayout();
_startPushButton = new QPushButton( QIcon(“:/startlba-img.png“) Qobject::trUtf8(“Start“) );
_startPushButton->setStatusTip( Qobject::trUtf8(“Start simulation“) );
_startPushButton->setWhatsThis( Qobject::trUtf8(“Pressing this button starts the simulation.“) );
_stopPushButton = new QPushButton( QIcon(“:/stoplba-img.png“) Qobject::trUtf8(“Stop“) );
_stopPushButton->setStatusTip( Qobject::trUtf8(“Stop simulation“) );
_stopPushButton->setWhatsThis( Qobject::trUtf8(“Pressing this button stops the simulation.“) );
_resetPushButton = new QPushButton( QIcon(“:/resetlba-img.png“) Qobject::trUtf8(“Reset“) );
_resetPushButton->setStatusTip( Qobject::trUtf8(“Reset simulation“) );
_resetPushButton->setWhatsThis( Qobject::trUtf8(“Pressing this button resets the simulation.“) );
_fineLayout->addWidget( _startPushButton 0 0 );
_fineLayout->addWidget( _stopPushButton 0 1 );
_fineLayout->addWidget( _resetPushButton 0 2 );
_widget = new QW
- 上一篇:数据库原理及应用教程第3版-PPT课件
- 下一篇:DSP28335中文手册
相关资源
- 格子Boltzmann方法学习资料和常用链接
- Fluent help精选算例
- 流体力学LBM数值计算书籍含代码
- 入门书籍.rar三本LBM的入门书籍,适合
- The Lattice Boltzmann Equation for Fluid Dynam
- Ansys Fluent Multiphase 15.0 多相流教程
- 格子Boltzmann方法的原理及应用 郭照立
- The Lattice Boltzmann Method Principles and Pr
- 多相格子玻尔兹曼方法理论与应用
- 格子Bolzmann方法的理论及应用
- 格子Boltzmann方法的原理及应用-郭照立
- 二维圆柱绕流MRT-LBM的模拟程序,基于
- LBM的源代码
- LBM :D2Q9
- LBM boiling
- lbm代码d2q9
- LBM模拟一维导热
- AMR-LBM-OpenMP-2D.rar
- LBM圆柱绕流
- FLUENT multiphase多相流高级应用
评论
共有 条评论