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

📄 testeso1doc.h

📁 利用渐进结构优化算法(ESO)实现矩形板的第一阶频率的最大化。用VC实现界面
💻 H
字号:
// TestESO1Doc.h : interface of the CTestESO1Doc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_TESTESO1DOC_H__C75BE306_DCC2_4796_BD06_D559ED85DF7B__INCLUDED_)
#define AFX_TESTESO1DOC_H__C75BE306_DCC2_4796_BD06_D559ED85DF7B__INCLUDED_

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

#include "Element.h"
#include "mlapp.h"
#define  INITNUMOFELEMENTS 500
#define  INITNUMOFNODES    561
#define  NUMBER_OF_ELEMENTS_TO_DELETE 4
class CTestESO1Doc : public CDocument
{
protected: // create from serialization only
	CTestESO1Doc();
	DECLARE_DYNCREATE(CTestESO1Doc)

// Attributes
public:
	CMapWordToOb m_mapNodeIDToNode;
	CMapWordToOb m_mapElementIDToElement;
//	DIMLApp      m_MatlabApp;
	Engine		 *m_ep;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestESO1Doc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	virtual void OnCloseDocument();
	//}}AFX_VIRTUAL

// Implementation
public:
	CString m_strInfo;
	double m_dCurrentEigen;
	void GetNodesDisplacements(CString strCurrentPath);
	void PutSettings();
	void GetSettings();
	int m_nIteration;
	virtual ~CTestESO1Doc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CTestESO1Doc)
	afx_msg void OnOptmization();
	afx_msg void OnOptimizationPrep();
	afx_msg void OnUpdateOptmization(CCmdUI* pCmdUI);
	afx_msg void OnUpdateControlOnestep(CCmdUI* pCmdUI);
	afx_msg void OnControlOnestep();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void WriteInfomation(CString strCurrentPath);
	int m_nTotNumElementNotDeletable;
	BOOL CaculateSpecifiedEleSensitivity(int ElementID, double* pdSensitivity);
	void PutKMMatrix();
	void ManipulateSensitivity();
	void DeleteAllIterationSubDir();
	CString GetModulePath();
	void RunNastran(CString strPathUnder);
	BOOL GenerateBDF();
	BOOL m_bPrepared;
	void InitStruct();
	void RemoveSpecifiedElement(int nElementID);
	void DrawElements();
	void DrawSpecifiedElement(int nElementID);
	void InitElements();
	void InitNodes();
	mxArray *mxStiffness, *mxMass;
};

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

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

#endif // !defined(AFX_TESTESO1DOC_H__C75BE306_DCC2_4796_BD06_D559ED85DF7B__INCLUDED_)

⌨️ 快捷键说明

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