找回密码
 注册
Simdroid-非首页
查看: 4689|回复: 70

[H. 有限元编程] 【分享】用C++编的有限元程序

  [复制链接]
发表于 2004-7-29 22:17:21 | 显示全部楼层 |阅读模式 来自 江苏南京
-----------------------------------------------------------------------------
  
This software package is public domain software
  
Comments/Questions can be directed to:
Charbel Farhat  : charbel@alexandra.colorado.edu
Michel  Lesoinne: michel@vette.colorado.edu
Kendall Pierson : piersonk@vette.colorado.edu
  
-----------------------------------------------------------------------------
  
Directory Contents and Description:
  
Driver.d/  Contains the main driver routines for linear statics, linear
                dynamics, and eigenvalue problems. The drivers are  
                StaticProbType.{h,C}, DynamProbType.{h,C}, and  
                EigenProbType.{h,C}.
  
Element.d/  Contains element class definitions and all routines necessary
                to implement the following elements: truss, Euler beam,  
                Timoshenko beam, Quadrilateral plane stress, translational spring,
                rotational spring, ANS shell, composite shell, and solid brick.
    The file AddElem.C contains the routine that builds the element
    set from the input file. Element.{h,C} contains the abstract
    definition of an element along with the structural properties
    class, Node class, CoordSet class, and Elemset class.
  
Examples.d/  Contains an example problem for linear statics, linear
    dynamics, and eigenvalue problems. These input files give
    an idea of how input is read into the FEM code. A more detailed
    manual is availible by contacting Charbel Farhat.
  
Main.d/    Contains a file for declaring compiler options.
  
Math.d/    Contains classes pertaining to vectors, matrices, and sparse
    matrices. The class SparseMatrix is a super class for the  
    following specific sparse matrix types: SGISparseMatrix,
    DBSparseMatrix, NBSparseMatrix and SkyMatrix.
  
Parser.d/  Contains the code necessary to read input data files.  
    lex/yacc is used to generate a parser based on keywords.
  
Problems.d/  Contains problem description classes for linear statics, linear
    dynamics, and eigenvalue problems. These classes are used in
    conjunction with the driver routines for the respective problem
    types.
  
Solvers.d/  Contains solver definition classes along with the abstract class
    definition of a solver which is contained in Solver.{h,C}.
  
Timers.d/  Contains routines that are used to time the programs and monitor  
    memory usage.
  
Utis.d/    Contains auxilary classes and/or functions that are used  
    throughout the FEM code. For example, Connectivity.{h,C} is
    a general class that is used to store adjacency information
    ( i.e. node to node adjacency, or subdomain to element, ...)
  
main.C    initial entry point for the FEM code
  
basedir    used to locate include files, should be set to the users
    directory where the FEM code is located.
    
------------------------------------------------------------------------------
  
How to compile the FEM code:
  
  1. set appropriate architecture compiler flags (in Makefile)
  2. type make all
  3. executable is called miniFEM
  
Note: linking with BLAS is required
  
BLAS ROUTINES
  
DGEMM
DGEMV
  
LINPACK ROUTINES
DSVDC
  
where DSVDC uses the following functions and subprograms.  
      External DROT BLAS DAXPY,DDOT,DSCAL,DSWAP,DNRM2,DROTG  
      Fortran DABS,DMAX1,MAX0,MIN0,MOD,DSQRT
  
------------------------------------------------------------------------------
  
How to execute the FEM code:
  
  miniFEM <input file>
  
  where <input file> is an appropriate input file like the examples
  found in Examples.d/
  
------------------------------------------------------------------------------

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×

评分

1

查看全部评分

 楼主| 发表于 2004-7-29 22:20:04 | 显示全部楼层 来自 江苏南京

回复: 【分享】用C++编的有限元程序

Simdroid开发平台
上面贴子附件为PART1,此贴附件为PART2

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2004-8-6 10:37:18 | 显示全部楼层 来自 大连理工大学

回复: 【分享】用C++编的有限元程序

xiexie!!
发表于 2004-8-13 11:11:23 | 显示全部楼层 来自 湖南衡阳

回复: 【分享】用C++编的有限元程序

非常感谢.顶顶!!!!
发表于 2004-8-15 17:46:12 | 显示全部楼层 来自 山东青岛

回复: 【分享】用C++编的有限元程序

谢谢,您辛苦了
发表于 2004-8-23 17:28:05 | 显示全部楼层 来自 江苏南京

回复: 【分享】用C++编的有限元程序

ding ,hao  
发表于 2004-8-27 15:16:40 | 显示全部楼层 来自 广西南宁

回复: 【分享】用C++编的有限元程序

thanks a lot
发表于 2004-9-11 21:25:33 | 显示全部楼层 来自 LAN

回复: 【分享】用C++编的有限元程序

能解释一下么??
什么有限元?用的是什么单元的?三角or四边?是否等参元?
发表于 2004-9-13 21:49:59 | 显示全部楼层 来自 江苏无锡

回复: 【分享】用C++编的有限元程序

谢谢了。
发表于 2004-9-20 09:05:10 | 显示全部楼层 来自 湖北武汉

回复: 【分享】用C++编的有限元程序

thank you
dubs01 该用户已被删除
发表于 2004-10-29 16:35:47 | 显示全部楼层 来自 同济大学
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2004-10-30 15:02:29 | 显示全部楼层 来自 北京

Re:【分享】用C++编的有限元程序

不错,好人。要是有说明就好,hoho
lihl123 该用户已被删除
发表于 2004-10-31 17:53:31 | 显示全部楼层 来自 河南郑州
提示: 作者被禁止或删除 内容自动屏蔽
reserve 该用户已被删除
发表于 2004-11-3 09:41:15 | 显示全部楼层 来自 上海浦东新区
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2004-11-4 18:05:23 | 显示全部楼层 来自 北京石景山

Re:【分享】用C++编的有限元程序

也给我 一份说明书
zhtbuaa@163.com
发表于 2004-11-8 21:26:43 | 显示全部楼层 来自 四川成都

Re:【分享】用C++编的有限元程序

请教怎样调试?
发表于 2004-11-12 12:05:55 | 显示全部楼层 来自 山东济南

Re:【分享】用C++编的有限元程序

能不能给发个说明书,谢谢!
dajin.fu@siemens.com
 楼主| 发表于 2004-11-12 19:06:57 | 显示全部楼层 来自 江苏南京

Re:【分享】用C++编的有限元程序

我也是从网上下的,没有说明,抱歉。
发表于 2004-11-28 19:17:24 | 显示全部楼层 来自 瑞士

Re:【分享】用C++编的有限元程序

xiexie
发表于 2005-1-10 19:36:28 | 显示全部楼层 来自 湖北武汉

Re:【分享】用C++编的有限元程序

有一个error:

fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-9-25 19:23 , Processed in 0.060922 second(s), 15 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表