3 Star 0 Fork 1

ela / Ela

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Bc.jl 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
ela 提交于 2015-01-01 17:33 . 创建项目
module Bc
# ---- 边界条件 ---- #
importall Geo
export Boundary, ConstantBoundary, CNodeForce, CNodeDisp, getValue
abstract Boundary
abstract ConstantBoundary <: Boundary
abstract ProportionBoundary <: Boundary
abstract TimeHistoryBoundary <: Boundary
# abstract CNodeForce <: ConstantBoundary
# abstract CNodeDisp <: ConstantBoundary
type CNodeForce <: ConstantBoundary
node::Node #// 荷载节点
dofTag::Int64 #// 荷载局部自由度
dofValue::Float64 #// 荷载自由度
function CNodeForce(node::Node, dofTag::Int64, dofValue::Float64)
dofOrder = 1
return new(node, dofTag, dofValue)
end
end
type CNodeDisp <: ConstantBoundary
node::Node #// 约束节点
dofTag::Int64 #// 约束自由度
dofValue::Float64 #// 约束值
function CNodeDisp(node::Node, dofTag::Int64, dofValue::Float64)
dofOrder = 1
return new(node, dofTag, dofValue)
end
end
function getValue(bc::ConstantBoundary,time::Float64)
return bc.dofValue,0.0 #// dofValue,delta_dofValue
end
function getValue(bc::ConstantBoundary,step::Int64)
return bc.dofValue,0.0 #// dofValue,delta_dofValue
end
function setDofIndex(bc::ConstantBoundary,indx::Int64)
# -- 设置节点自由度在整体模型中的标签 -- #
bc.dofOrder = indx
nothing
end
end
Julia
1
https://gitee.com/ela/Ela.git
git@gitee.com:ela/Ela.git
ela
Ela
Ela
master

搜索帮助