⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lbm_d2q9view.h

📁 格子Boltzmann方法 格子Boltzmann方法是为了保留格子气自动机方法的优点
💻 H
字号:
// LBM_D2Q9View.h : interface of the CLBM_D2Q9View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_LBM_D2Q9VIEW_H__AA4432E4_5DED_4C9F_8FE6_79A2D583F773__INCLUDED_)
#define AFX_LBM_D2Q9VIEW_H__AA4432E4_5DED_4C9F_8FE6_79A2D583F773__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "D2Q9.h"

class CLBM_D2Q9View : public CScrollView
{
protected: // create from serialization only
	CLBM_D2Q9View();
	DECLARE_DYNCREATE(CLBM_D2Q9View)

protected:
	UINT m_timer;
	double arrow_angle, arrow_size, arrow_length;
	COLORREF color[256];
	double **u_old, **v_old;
	int pause, show_flag;

public:
	CLBM_D2Q9Doc* GetDocument();
	void show(), show1();
	void drawarrow(int i1, int j1, int i2, int j2, long color,
					double arrow_angle, double arrow_size);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLBM_D2Q9View)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL DestroyWindow();
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CLBM_D2Q9View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CLBM_D2Q9View)
	afx_msg void OnPause();
	afx_msg void OnShow();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnPara();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in LBM_D2Q9View.cpp
inline CLBM_D2Q9Doc* CLBM_D2Q9View::GetDocument()
   { return (CLBM_D2Q9Doc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LBM_D2Q9VIEW_H__AA4432E4_5DED_4C9F_8FE6_79A2D583F773__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -