代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。