Creating an Example IFM Module with FEFLOW 5.4 and Microsoft Visual Studio 2008 (Standard/Professional or Express Edition)

Similar documents
Developing, Deploying, and Debugging Applications on Windows Embedded Standard 7

Appendix F: Instructions for Downloading Microsoft Access Runtime

DEPLOYING A VISUAL BASIC.NET APPLICATION

Working with SQL Server Integration Services

Introduction to the use of the environment of Microsoft Visual Studio 2008

Install the Production Treasury Root Certificate (Vista / Win 7)

Installing Geant4 v9.5 for Windows

Practice Fusion API Client Installation Guide for Windows

SAS 9.3 Foundation for Microsoft Windows

Magaya Software Installation Guide

Appendix E. Captioning Manager system requirements. Installing the Captioning Manager

How to use the VMware Workstation / Player to create an ISaGRAF (Ver. 3.55) development environment?

AdminToys Suite. Installation & Setup Guide

Java Software Development Kit (JDK 5.0 Update 14) Installation Step by Step Instructions

SonicWALL CDP 5.0 Microsoft Exchange InfoStore Backup and Restore

Technical White Paper

Supplement I.B: Installing and Configuring JDK 1.6

CROWNPEAK C# API SYSTEM CONFIGURATION GUIDE VERSION 3.0.1

Supplement I.B: Installing and Configuring JDK 1.6

Excel will open with the report displayed. You can format and/or save the report as desired.

MS SQL Express installation and usage with PHMI projects

Installing LearningBay Enterprise Part 2

Diver-Office Backup and Restore the Database

Administrator s Guide to deploying Engagement across multiple computers in a network using Microsoft Active Directory

How To Install Outlook Addin On A 32 Bit Computer

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

Using Management Shell Reports and Tracking User Access in the NetVanta UC Server

How to install and use the File Sharing Outlook Plugin

OneStop Reporting 3.7 Installation Guide. Updated:

Installation...2 Installation of Athena Visual Studio...2 Authorization...3 Authorization for Corporate License Users...3 Authorization for

etoken Enterprise For: SSL SSL with etoken

How to test and debug an ASP.NET application

VirtualXP Users Guide

SOFTWARE INSTALLATION INSTRUCTIONS

To install Multifront you need to have familiarity with Internet Information Services (IIS), Microsoft.NET Framework and SQL Server 2008.

Juris Installation / Upgrade Guide

Installation Guide for Crossroads Software s Traffic Collision Database

Project management integrated into Outlook

Microsoft Visual Studio Integration Guide

What is My Teamwork? What s new in this release? MY TEAMWORK 5.0 QUICK START GUIDE

POOSL IDE Installation Manual

Wavecrest Certificate

Vodafone PC SMS (Software version 4.7.1) User Manual

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

Global Image Management System For epad-vision. User Manual Version 1.10

GUARD1 PLUS Mini-Attendant File Manager User's Guide Version 2.71

BSDI Advanced Fitness & Wellness Software

Installation and Operation Manual Portable Device Manager, Windows version

SQL Server 2008 R2 Express Installation for Windows 7 Professional, Vista Business Edition and XP Professional.

Integrated Virtual Debugger for Visual Studio Developer s Guide VMware Workstation 8.0

Configuration for Professional Client Access

Moving the Web Security Log Database

4cast Client Specification and Installation

Milestone XProtect Corporate 3.1 Step-by-Step Guide How to Back Up and Restore the System Configuration

Milestone XProtect Corporate 3.1 Step-by-Step Guide How to Back Up, Move and Restore the Management Server

BSDI Advanced Fitness & Wellness Software

Scala InfoChannel Content Manager 5 Backup and Restore Instructions

Installation and Operation Manual Unite Log Analyser

Migrating MSDE to Microsoft SQL 2008 R2 Express

Zanibal Plug-in For Microsoft Outlook Installation & User Guide Version 1.1

Eclipse installation, configuration and operation

CenterLight Remittance Reader Installation Guide(64 bit) CenterLight Remittance Reader Installation Guide (64 bit) Page 1 of 15

Managing Contacts in Outlook

Recommended Network Setup

Novell Filr. Windows Client

Helpdesk Support Tool Administrator s Guide

Issue Tracking Anywhere Installation Guide

Exercise Safe Commands and Audit Trail

COMBOGARDPRO. 39E Electronic Combination Lock SOFTWARE INSTALLATION INSTRUCTIONS

Quick Start Using DASYLab with your Measurement Computing USB device

Printer Sharing of the PT-9500pc in a Windows Environment

Installation Guide for Microsoft SQL Server 2008 R2 Express. October 2011 (GUIDE 1)

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Autodesk Navisworks 2015 Service Pack 2

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

Como configurar o IIS Server para ACTi NVR Enterprise

Desktop, Web and Mobile Testing Tutorials

Microsoft Access Database

Connecting to Delta College Exchange services off-campus

ABS2020 Moving Airfreight Forward

NetBeans IDE Field Guide

CODESOFT Installation Scenarios

Secure IIS Web Server with SSL

Project management integrated into Outlook

Distributing SMS v2.0

Using Microsoft Visual Studio API Reference

How To Install Database Oasis On A Computer Or Computer (For Free)

Virtual Office Remote Installation Guide

XF Extracellular Flux Analyzer. Installation and Troubleshooting Guide

SARANGSoft WinBackup Business v2.5 Client Installation Guide

ACTIVE DIRECTORY DEPLOYMENT

BusinessObjects Enterprise XI Release 2

Installing and Configuring SQL Express 2008 R2 for Supply Chain Guru

Installing the Microsoft Network Driver Interface

Witango Application Server 6. Installation Guide for Windows

APPLICATION NOTE. Getting Started with pylon and OpenCV

Microsoft Visual Studio 2010 Instructions For C Programs

Sage Peachtree Installation Instructions

Configuring Active Directory with AD FS and SAML for Brainloop Secure Dataroom Setup Guide

Transcription:

Creating an Example IFM Module with FEFLOW 5.4 and Microsoft Visual Studio 2008 (Standard/Professional or Express Edition) 1 Introduction The following introduction is a guide to the setup of a first own IFM module. The example is based on Microsoft Visual Studio 2008 Standard/Professional Edition and the free Microsoft Visual Studio 2008 Express Edition. The approach slightly differs for older versions of Microsoft Visual Studio. In case of any problems, please contact the DHI-WASY support team (support@dhiwasy.de). Before starting the module development, the following items have to be installed: FEFLOW IFM Development Kit (the respective package in the FEFLOW setup has to be selected) Microsoft Visual Studio 2008 Standard/Professional with C++ support or Microsoft Visual Studio 2008 Express Edition with C++ support (free download available from http://www.microsoft.com/express/) Only for users of the 64-Bit Edition of FEFLOW: To create IFM modules for the usage with the 64-bit Edition of FEFLOW, it is necessary to include the X64 Compilers and Tools in the installation of Visual Studio 2008 as shown in Figure 1-1). Figure 1-1: Installing the X64 compilers 1

2 Create your own module 2.1 Open FEFLOW and select the IFM Configure menu entry (IFM- Configure ) Figure 2-1: FEFLOW IFM - Configure menu entry 2.2 Choose the interface Simulation and press the New Module button to create a new module Figure 2-2: Interface Manager The additional columns Modules and Callbacks are not used at this point. 2

Figure 2-3: IFM menu Step 1 2.3 Specify a name for the new module and a base directory for the module files (typically with the same name). By default, FEFLOW will store new modules in My documents\feflow IFM Projects. 2.4 Define the module properties (Language, GUI support, and the description). The names and Register procedure are set automatically. 3

Figure 2-4: IFM menu Step 2 Figure 2-5: IFM menu Step 3 2.5 Decline to edit the copyright file now. A default copyright text file will be generated for your module. 4

Figure 2-6: Alert Box 2.6 Read the information about the following file generation carefully. You can make changes by going back with the Prev button. Figure 2-7: IFM menu Step 4 2.7 Press Finish to close the dialog 5

2.8 Click close in the information box Figure 2-8: Information about IFM project generation The source code and the related files of the module are created. The new module (HelloWorld) appears in the column Modules. Figure 2-9: Interface Manager 2.9 Close the dialog by hitting Close 6

3 Add the generated files to a new Visual C++ project Open Visual Studio and add the generated files to a new project. 3.1 Select File New New project From Existing Code 3.2 Choose the type of your project (Visual C++) and click Next Figure 3-1: Definition of the project file location 3.3 Define the project file location (see chapter 2.7, in our example G:\Development\HelloWorld ), type in the Project name HelloWorld and click Next 7

Figure 3-2: Definition of the project type 3.4 Define the Dynamically linked library (DLL) project as Project type. 3.5 Press Finish (The next two pages are accepted without changes). Figure 3-3: Add Existing Project 8

Figure 3-4: Add the ifm project 3.6 Select File Add Existing project and add the prepared IFM library project (<FEFLOW User Files>\sdk\lib\vc9\ifm.vcproj) to the Visual Studio project. You will commonly find the <FEFLOW User Files> under C:\Documents and Settings\All Users\ Shared Documents\WASY FEFLOW 5.4\ (Windows XP) or C:\Users\Public\Documents\WASY FEFLOW 5.4\ (Windows Vista). Depending on the system language, these paths may be slightly different. Adding the ifm library source code to the solution ensures that the library is always up-to-date and allows the use of Microsoft s IntelliSense for IFM functions. If using Visual Studio 2005, use <FEFLOW User Files>\sdk\lib\vc8\ifm.vcproj instead. 9

4 Define solution and project settings 4.1 In the Solution Explorer, click on your project with the right mouse button ( HelloWorld ) and select Project dependencies. Figure 4-1: Select project dependencies Activate the dependency for your project HelloWorld on the ifm project. Figure 4-2: Definition of the project dependencies 10

4.2 Open the project properties (right mouse click on the project HelloWorld). Open the Configuration Properties C/C++ General and add the following folders to the list of Additional Include Directories - <FEFLOW User Files>\sdk\ifm\include - <FEFLOW User Files>\sdk\ifm\include\xdk Figure 4-3: Adding of include directories 4.3 In Configuration Properties Debugging define the debug executable (<FEFLOW Root Folder>\bin32\feflow.exe) and define ifmdebug as Command Arguments. This will tell Visual Studio to start FEFLOW in debug-mode to test your module. Use <FEFLOW Root Folder>\bin64\feflow.exe if using the 64-bit Edition of FEFLOW. 11

Figure 4-4: Command and Command arguments definition 4.4 Define Multi-threaded Debug (/Mtd) as runtime library in C/C++ Code generation Figure 4-1: Runtime library definition 12

4.5 Switch to release configuration and repeat the steps 4.2 and 4.4 for the release configuration if you want to build release versions of your module Figure 4-5: Switching Configurations 4.6 For users of the 64-bit Edition of FEFLOW only: Right-click on Solution and choose Configuration manager from the context menu. Choose <New...> from the Active solution platform dropdown menu. Figure 4-2: Configuration manager Confirm the upcoming dialog (Figure 4-3) with OK and exit the configuration manager with close. You can now switch between the Win32 (x86) and x64 platform as shown in Figure 4-4. Figure 4-3: New solution platform Figure 4-4: Switching the target platform 13

5 Compile the module 5.1 Compile the module by hitting F7 or using menu Build 5.2 Start debugging hitting F5 or opening the menu Debug Start debugging 5.3 Open IFM Configure 5.4 Define a Callback (OnEditDocument) to be used by clicking on the corresponding entry in the Callbacks column and hitting Add (or double-click the list entry). A plus is shown, indicating that the OnEditDocument callback is used in the HelloWorld module. Close the dialog. Figure 5-1: IFM dialog 5.5 Close FEFLOW. 5.6 Go back to the Visual C++ solution and accept reloading the file. The source code of the module has been changed by FEFLOW, adding the callback. 5.7 Add your own code in the callback function OnEditDocument, replacing the entire comment TODO: Add your own code here: IfmInfo(pDoc, Hello World... ); 14

Figure 5-2: Microsoft Visual C++ 5.8 Build the module (F7) and start debugging again (F5) 5.9 Open the IFM Configure menu and select the module (Hello Word) 5.10 Press Properties and define the path of the created debug dll as Target(debug). Close the dialog with Okay. 15

Figure 5-3: Definition of the module path 5.11 Close FEFLOW and accept reloading the source file in VC++ 5.12 Compile (F7) and start debugging again (F5) 5.13 Load an arbitrary fem file (e.g., <FEFLOW User Data>\demo\exercise\femdata\demo_flow_3d.fem) 16

Figure 5-4: FEFLOW fem file 5.14 Open the Problem Editor IFM modules Manage modules 5.15 Load the IFM module and close the dialog Figure 5-5: Loading of the IFM module 5.16 Click on the module button in the lower left corner. The IFM information should appear in the Log Messages box. 17

Figure 5-6: FEFLOW Problem Editor For programming more complex modules, please see Appendix B of the FEFLOW Online Help for a complete list of all available IFM API functions. You might also wish to have a look at the description of all available callbacks in the IFM dialog to see where you can add your own code. In case of any problems or questions, please do not hesitate to contact the FEFLOW support staff (support@dhi-wasy.de). 18