yantu-FLAC3D-udm

所属分类:3D图形编程
开发工具:Others
文件大小:21KB
下载次数:89
上传日期:2014-10-22 23:37:40
上 传 者hjiang5
说明:  这是一个用于岩土中flac3d软件二次开发的学习程序,其编写的是Mohr-coulomb模型。可作为参考。
(this is a secondary development program for flac3d,which is widely used in geotechnical engieering.)

文件列表:
yantu FLAC3D-udm (0, 2014-10-06)
yantu FLAC3D-udm\AXES.H (2331, 2004-10-13)
yantu FLAC3D-udm\Conmodel.h (11253, 2005-08-02)
yantu FLAC3D-udm\CONTABLE.H (1797, 2004-10-13)
yantu FLAC3D-udm\example_src (0, 2014-10-06)
yantu FLAC3D-udm\example_src\usermohr.cpp (7843, 2005-04-05)
yantu FLAC3D-udm\example_src\usermohr.h (1637, 2005-04-05)
yantu FLAC3D-udm\example_src\usersoft.cpp (11621, 2002-03-22)
yantu FLAC3D-udm\example_src\usersoft.h (1943, 2002-03-16)
yantu FLAC3D-udm\STENSOR.H (2460, 2004-10-13)
yantu FLAC3D-udm\udm.sln (895, 2005-05-27)
yantu FLAC3D-udm\udm.vcproj (5178, 2005-05-27)
yantu FLAC3D-udm\vcmodels.lib (17170, 2005-09-19)

********************************** README ****************************************** Creating a user defined constitutive model dll with Microsoft Visual C++ v7.0 ----------------------------------------------------------------------------- Visual Studio uses the concept of a solution (*.sln) to contain a collection of one or more projects (*.vcproj). An example solution and project has been provided to illustrate how to create your own user defined model dll. The files for this example can be found in C:\Program Files\itasca\shared\models\UDM in a file called udm.zip. Unzip this file into a working directory of your choice. Inside this directory you will find a solution file called udm.sln and a project file called udm.vcproj. Launch Visual Studio .NET (Visual C++ v7.0) and under the View menu, select Solution Explorer. The Solution Explorer allows quick visual access to all components of the solution. Under the File menu select "Open Solution" (this is not the same as the open menu item). Navigate to your working directory and select udm.sln. You will see the solution and project appear in the solution explorer. 1.0 Building the project -------------------- From the menus in the toolbar choose Build --> Rebuild Solution. All projects currently in the solution will be rebuilt. The udm project creates a file called userssoft.dll which is placed in a Release subdirectory in your working directory (if the Debug configuration is active then duserssoft.dll is created in a Debug subdirectory). This dll is ready to use as a udm. 2.0 Creating a new project -------------------------- The easiest way to create a new project that produces a dll for a user defined model is to copy an existing project (*.vcproj) to a new file and read that project into the solution. 1. copy udm.vcproj to mymodel.vcproj (a name of your choice) 2. Right click on the udm solution icon (the topmost item in the solution explorer) and choose Add --> Existing Project 3. Select mymodel.vcproj You will see two projects with identical names (both are called udm) in the solution explorer. Right click the second project in the tree and rename it to mymodel. Multiple projects can be created and placed in the same solution by following the above procedure. 3.0 Choosing Release/Debug build option --------------------------------------- 1. In the main menu select Build --> Configuration Manager. 2. Choose either Release or Debug under the Active Solution Configuration. Note: 1. vcmodels.lib is a Release build library (does not contain any debugging information) but it can still be used to create user DLLs with Debug option and loaded it into FLAC3D, although this is not of much use and may even slow down the run as some optimization switches may be turned off. (Refer to Microsoft documentation for details on optimization switches for Debug ad Release builds) 2. The settings that are established in the following steps pertain only to the current build configuration. 4.0 Changing the output file name of a user defined DLL --------------------------------------------------------------- 1. In the solution explorer, right click on your project (mymodel) and select Properties --> Configuration Properties --> Linker --> General 2. In the Output File field type "Release/mymodel.dll" This will create a file called mymodel.dll in the Release subdirectory of your working directory. 5.0 Adding your user defined source and header files to the project ---------------------------------------------------------------- 1. In the solution explorer, under your project (mymodel) right click on the usersoft.cpp (under the Source Files folder) and remove it Do the same for usersoft.h (under the Header Files folder). 2. A new user defined model will be substitued in place of these files. Right click Source Files (in the solution explorer) and select Add --> Add Existing Item. Navigate to directory example_src and select usermohr.cpp. Do the same for usermohr.h (under the Header Files folder). 3. Change the name of the output dll (step 4.0 above) and build the project (step 1.0 above). These are some basic steps needed to create a new project, add it to an existing solution, and create a user-defined DLL. The user should refer to documentation for Visual C++ for further details. **************************************************************************************************

近期下载者

相关文件


收藏者