资源简介
flac二次开发工具 udm工程文件,生成相关dll文件,可以修改本构
代码片段和文件信息
#include “usermohr.h“
#include
//variables used by all model objects. Hence only one copy is maintained for all objects
static const double d2d3 = 2.0 / 3.0;
static const double dPi = 3.141592653589793238462643383279502884197169399;
static const double dDegRad = dPi / 180.0;
// Plasticity Indicators
static const unsigned long mShearNow = 0x01; /* state logic */
static const unsigned long mTensionNow = 0x02;
static const unsigned long mShearPast = 0x04;
static const unsigned long mTensionPast = 0x08;
// One static instance is neccessary as a part of internal registration process of the model with FLAC/FLAC3D
static UserMohrModel usermohrmodel(true);
UserMohrModel::UserMohrModel(bool bRegister)
:ConstitutiveModel(mnUserMohrModelbRegister) dBulk(0.0)
dShear(0.0) dCohesion(0.0) dFriction(0.0) dDilation(0.0)
dTension(0.0) dYoung(0.0) dPoisson(0.0) dE1(0.0) dE2(0.0)
dG2(0.0) dNPH(0.0) dCSN(0.0) dSC1(0.0) dSC3(0.0)
dBISC(0.0) dE21(0.0) {
}
const char **UserMohrModel::Properties(void) const {
static const char *strKey[] = {
“bulk“ “shear““cohesion““friction““dilation“
“tension““young““poisson“ 0
};
return(strKey);
}
const char **UserMohrModel::States(void) const {
static const char *strKey[] = {
“shear-n““tension-n““shear-p““tension-p“0
};
return(strKey);
}
/* * Note: Maintain order of property input/output
*/
double UserMohrModel::GetProperty(unsigned ul) const {
switch (ul) {
case 1: return(dBulk);
case 2: return(dShear);
case 3: return(dCohesion);
case 4: return(dFriction);
case 5: return(dDilation);
case 6: return(dTension);
case 7: return(dYoung);
case 8: return(dPoisson);
}
return(0.0);
}
void UserMohrModel::SetProperty(unsigned ulconst double &dVal) {
switch (ul) {
case 1: {
dBulk = dVal;
YoungPoissonFromBulkShear(&dYoung&dPoissondBulkdShear);
break;
}
case 2: {
dShear = dVal;
YoungPoissonFromBulkShear(&dYoung&dPoissondBulkdShear);
break;
}
case 3: dCohesion = dVal; break;
case 4: dFriction = dVal; break;
case 5: dDilation = dVal; break;
case 6: dTension = dVal; break;
case 7: {
dYoung = dVal;
BulkShearFromYoungPoisson(&dBulk&dSheardYoungdPoisson);
break;
}
case 8: {
if ((dVal==0.5)||(dVal==-1.0)) return;
dPoisson = dVal;
BulkShearFromYoungPoisson(&dBulk&dSheardYoungdPoisson);
break;
}
}
}
const char *UserMohrModel::Copy(const ConstitutiveModel *cm) {
//Detects type mismatch error and returns error string. otherwise returns 0
const char *str = ConstitutiveModel::Copy(cm);
if (str) return(str);
UserMohrModel *mm = (UserMohrModel *)cm;
dBulk = mm->dBulk;
dShear = mm->dShear;
dCohesion = mm->dCohesion;
d
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2331 2004-10-13 16:40 yantu FLAC3D-udm\AXES.H
文件 11253 2005-08-02 13:19 yantu FLAC3D-udm\Conmodel.h
文件 1797 2004-10-13 16:40 yantu FLAC3D-udm\CONTABLE.H
文件 7843 2005-04-05 15:14 yantu FLAC3D-udm\example_src\usermohr.cpp
文件 1637 2005-04-05 15:15 yantu FLAC3D-udm\example_src\usermohr.h
文件 11621 2002-03-22 15:57 yantu FLAC3D-udm\example_src\usersoft.cpp
文件 1943 2002-03-16 18:48 yantu FLAC3D-udm\example_src\usersoft.h
文件 1245184 2015-04-16 08:51 yantu FLAC3D-udm\ipch\udm-3a14ac\debug\udm-36f874ef.ipch
文件 4611 2005-09-19 10:30 yantu FLAC3D-udm\Readme.txt
文件 2460 2004-10-13 16:40 yantu FLAC3D-udm\STENSOR.H
文件 1527808 2015-04-16 08:51 yantu FLAC3D-udm\udm.sdf
文件 867 2015-04-16 08:49 yantu FLAC3D-udm\udm.sln
..A..H. 10752 2015-04-16 08:51 yantu FLAC3D-udm\udm.suo
文件 5178 2005-05-27 09:16 yantu FLAC3D-udm\udm.vcproj
文件 8788 2015-04-16 08:50 yantu FLAC3D-udm\udm.vcxproj
文件 1189 2015-04-16 08:50 yantu FLAC3D-udm\udm.vcxproj.filters
文件 143 2015-04-16 08:49 yantu FLAC3D-udm\udm.vcxproj.user
文件 6647 2015-04-16 08:49 yantu FLAC3D-udm\UpgradeLog.xm
文件 6517 2015-04-16 08:50 yantu FLAC3D-udm\UpgradeLog2.xm
文件 17170 2005-09-19 09:28 yantu FLAC3D-udm\vcmodels.lib
文件 3348 2015-04-16 08:50 yantu FLAC3D-udm\_UpgradeReport_Files\UpgradeReport.css
文件 12505 2010-05-04 01:19 yantu FLAC3D-udm\_UpgradeReport_Files\UpgradeReport.xslt
文件 69 2015-04-16 08:50 yantu FLAC3D-udm\_UpgradeReport_Files\UpgradeReport_Minus.gif
文件 71 2015-04-16 08:50 yantu FLAC3D-udm\_UpgradeReport_Files\UpgradeReport_Plus.gif
目录 0 2015-04-16 08:51 yantu FLAC3D-udm\ipch\udm-3a14ac\debug
目录 0 2015-04-16 08:51 yantu FLAC3D-udm\ipch\udm-3a14ac
目录 0 2015-04-15 23:05 yantu FLAC3D-udm\example_src
目录 0 2015-04-16 08:51 yantu FLAC3D-udm\ipch
目录 0 2015-04-16 08:49 yantu FLAC3D-udm\_UpgradeReport_Files
目录 0 2015-04-16 08:51 yantu FLAC3D-udm
............此处省略3个文件信息
- 上一篇:ansys to 3dec转换程序
- 下一篇:strsafe.rar
评论
共有 条评论