当前位置:首页 » 比特币问答 » 比特币opennodes

比特币opennodes

发布时间: 2022-09-11 04:37:33

『壹』 Opensees中的Geometric Transformation Command几何变换的问题

本回答是提问者的一个小号,以便补充方法一和方法二的程序,望有大神解答一定给分:
方法一:
# OpenSees Example 3.1

# OpenSees Primer

#

# Units: kips, in, sec

# ------------------------------

# Start of model generation

# ------------------------------

# Create ModelBuilder (with two-dimensions and 3 DOF/node)

model basic -ndm 2 -ndf 3

# Create nodes

# ------------

# Set parameters for overall model geometry

set width 360

set height 144

# Create nodes

# tag X Y

node 1 0.0 0.0

node 2 $width 0.0

node 3 0.0 $height

node 4 $width $height

# Fix supports at base of columns

# tag DX DY RZ

fix 1 1 1 1

fix 2 1 1 1

# Define materials for nonlinear columns

# ------------------------------------------

# CONCRETE tag f'c ec0 f'cu ecu

# Core concrete (confined)

uniaxialMaterial Concrete01 1 -6.0 -0.004 -5.0 -0.014

# Cover concrete (unconfined)

uniaxialMaterial Concrete01 2 -5.0 -0.002 0.0 -0.006

# STEEL

# Reinforcing steel

set fy 60.0; # Yield stress

set E 30000.0; # Young's molus

# tag fy E0 b

uniaxialMaterial Steel01 3 $fy $E 0.01

# Define cross-section for nonlinear columns

# ------------------------------------------

# set some paramaters

set colWidth 15

set colDepth 24

set cover 1.5

set As 0.60; # area of no. 7 bars

# some variables derived from the parameters

set y1 [expr $colDepth/2.0]

set z1 [expr $colWidth/2.0]

section Fiber 1 {

# Create the concrete core fibers

patch rect 1 10 1 [expr $cover-$y1] [expr $cover-$z1] [expr $y1-$cover] [expr $z1-$cover]

# Create the concrete cover fibers (top, bottom, left, right)

patch rect 2 10 1 [expr -$y1] [expr $z1-$cover] $y1 $z1

patch rect 2 10 1 [expr -$y1] [expr -$z1] $y1 [expr $cover-$z1]

patch rect 2 2 1 [expr -$y1] [expr $cover-$z1] [expr $cover-$y1] [expr $z1-$cover]

patch rect 2 2 1 [expr $y1-$cover] [expr $cover-$z1] $y1 [expr $z1-$cover]

# Create the reinforcing fibers (left, middle, right)

layer straight 3 3 $As [expr $y1-$cover] [expr $z1-$cover] [expr $y1-$cover] [expr $cover-$z1]

layer straight 3 2 $As 0.0 [expr $z1-$cover] 0.0 [expr $cover-$z1]

layer straight 3 3 $As [expr $cover-$y1] [expr $z1-$cover] [expr $cover-$y1] [expr $cover-$z1]

}

# Define column elements

# ----------------------

# Geometry of column elements

# tag

geomTransf Linear 1

# Number of integration points along length of element

set np 5

# Create the coulumns using Beam-column elements

# tag ndI ndJ nsecs secID transfTag

element nonlinearBeamColumn 1 1 3 $np 1 1

element nonlinearBeamColumn 2 2 4 $np 1 1

element nonlinearBeamColumn 3 3 4 $np 1 1

# Define beam elment

# Define gravity loads

# --------------------

# Set a parameter for the axial load

set P 180; # 10% of axial capacity of columns

# Create a Plain load pattern with a Linear TimeSeries

pattern Plain 1 "Linear" {

eleLoad -ele 3 -type -beamUniform 180

}

# ------------------------------

# End of model generation

# ------------------------------

# ------------------------------

# Start of analysis generation

# ------------------------------

# Create the system of equation, a sparse solver with partial pivoting

system BandGeneral

# Create the constraint handler, the transformation method

constraints Transformation

# Create the DOF numberer, the reverse Cuthill-McKee algorithm

numberer RCM

# Create the convergence test, the norm of the resial with a tolerance of

# 1e-12 and a max number of iterations of 10

test NormDispIncr 1.0e-12 10 3

# Create the solution algorithm, a Newton-Raphson algorithm

algorithm Newton

# Create the integration scheme, the LoadControl scheme using steps of 0.1

integrator LoadControl 0.1

# Create the analysis object

analysis Static

# initialize in case we need to do an initial stiffness iteration

initialize

# ------------------------------

# End of analysis generation

# ------------------------------

# ------------------------------

# Start of recorder generation

# ------------------------------

# Create a recorder to monitor nodal displacements

recorder Node -file nodeGravity.out -time -node 3 4 -dof 1 2 3 disp

# --------------------------------

# End of recorder generation

# ---------------------------------

# ------------------------------

# Finally perform the analysis

# ------------------------------

# perform the gravity load analysis, requires 10 steps to reach the load level

analyze 10

# Print out the state of nodes 3 and 4

print node 3 4

# Print out the state of element 1

print ele 1 2 3

方法二:
# OpenSees Example 3.1

# OpenSees Primer

#

# Units: kips, in, sec

# ------------------------------

# Start of model generation

# ------------------------------

# Create ModelBuilder (with two-dimensions and 3 DOF/node)

model basic -ndm 2 -ndf 3

# Create nodes

# ------------

# Set parameters for overall model geometry

set width 360

set height 144

# Create nodes

# tag X Y

node 1 0.0 0.0

node 2 $width 0.0

node 3 0.0 $height

node 4 $width $height

# Fix supports at base of columns

# tag DX DY RZ

fix 1 1 1 1

fix 2 1 1 1

# Define materials for nonlinear columns

# ------------------------------------------

# CONCRETE tag f'c ec0 f'cu ecu

# Core concrete (confined)

uniaxialMaterial Concrete01 1 -6.0 -0.004 -5.0 -0.014

# Cover concrete (unconfined)

uniaxialMaterial Concrete01 2 -5.0 -0.002 0.0 -0.006

# STEEL

# Reinforcing steel

set fy 60.0; # Yield stress

set E 30000.0; # Young's molus

# tag fy E0 b

uniaxialMaterial Steel01 3 $fy $E 0.01

# Define cross-section for nonlinear columns

# ------------------------------------------

# set some paramaters

set colWidth 15

set colDepth 24

set cover 1.5

set As 0.60; # area of no. 7 bars

# some variables derived from the parameters

set y1 [expr $colDepth/2.0]

set z1 [expr $colWidth/2.0]

section Fiber 1 {

# Create the concrete core fibers

patch rect 1 10 1 [expr $cover-$y1] [expr $cover-$z1] [expr $y1-$cover] [expr $z1-$cover]

# Create the concrete cover fibers (top, bottom, left, right)

patch rect 2 10 1 [expr -$y1] [expr $z1-$cover] $y1 $z1

patch rect 2 10 1 [expr -$y1] [expr -$z1] $y1 [expr $cover-$z1]

patch rect 2 2 1 [expr -$y1] [expr $cover-$z1] [expr $cover-$y1] [expr $z1-$cover]

patch rect 2 2 1 [expr $y1-$cover] [expr $cover-$z1] $y1 [expr $z1-$cover]

# Create the reinforcing fibers (left, middle, right)

layer straight 3 3 $As [expr $y1-$cover] [expr $z1-$cover] [expr $y1-$cover] [expr $cover-$z1]

layer straight 3 2 $As 0.0 [expr $z1-$cover] 0.0 [expr $cover-$z1]

layer straight 3 3 $As [expr $cover-$y1] [expr $z1-$cover] [expr $cover-$y1] [expr $cover-$z1]

}

section Fiber 2 {

# Create the beam concrete core fibers

patch rect 1 1 10 [expr $cover-$z1] [expr $cover-$y1] [expr $z1-$cover] [expr $y1-$cover]

# Create the concrete cover fibers (top, bottom, left, right)

patch rect 2 1 10 [expr $z1-$cover] [expr -$y1] $z1 $y1

patch rect 2 1 10 [expr -$z1] [expr -$y1] [expr $cover-$z1] $y1

patch rect 2 1 2 [expr $cover-$z1] [expr -$y1] [expr $z1-$cover] [expr $cover-$y1]

patch rect 2 1 2 [expr $cover-$z1] [expr $y1-$cover] [expr $z1-$cover] $y1

# Create the reinforcing fibers (left, middle, right)

layer straight 3 3 $As [expr $z1-$cover] [expr $y1-$cover] [expr $cover-$z1] [expr $y1-$cover]

layer straight 3 2 $As [expr $z1-$cover] 0.0 [expr $cover-$z1] 0.0

layer straight 3 3 $As [expr $z1-$cover] [expr $cover-$y1] [expr $cover-$z1] [expr $cover-$y1]

}

# Define column elements

# ----------------------

# Geometry of column elements

# tag

geomTransf Linear 1

# Number of integration points along length of element

set np 5

# Create the coulumns using Beam-column elements

# tag ndI ndJ nsecs secID transfTag

element nonlinearBeamColumn 1 1 3 $np 1 1

element nonlinearBeamColumn 2 2 4 $np 1 1

element nonlinearBeamColumn 3 3 4 $np 2 1

# Define beam elment

# Define gravity loads

# --------------------

# Set a parameter for the axial load

set P 180; # 10% of axial capacity of columns

# Create a Plain load pattern with a Linear TimeSeries

pattern Plain 1 "Linear" {

eleLoad -ele 3 -type -beamUniform 180

}

# ------------------------------

# End of model generation

# ------------------------------

# ------------------------------

# Start of analysis generation

# ------------------------------

# Create the system of equation, a sparse solver with partial pivoting

system BandGeneral

# Create the constraint handler, the transformation method

constraints Transformation

# Create the DOF numberer, the reverse Cuthill-McKee algorithm

numberer RCM

# Create the convergence test, the norm of the resial with a tolerance of

# 1e-12 and a max number of iterations of 10

test NormDispIncr 1.0e-12 10 3

# Create the solution algorithm, a Newton-Raphson algorithm

algorithm Newton

# Create the integration scheme, the LoadControl scheme using steps of 0.1

integrator LoadControl 0.1

# Create the analysis object

analysis Static

# initialize in case we need to do an initial stiffness iteration

initialize

# ------------------------------

# End of analysis generation

# ------------------------------

# ------------------------------

# Start of recorder generation

# ------------------------------

# Create a recorder to monitor nodal displacements

recorder Node -file nodeGravity.out -time -node 3 4 -dof 1 2 3 disp

# --------------------------------

# End of recorder generation

# ---------------------------------

# ------------------------------

# Finally perform the analysis

# ------------------------------

# perform the gravity load analysis, requires 10 steps to reach the load level

analyze 10

# Print out the state of nodes 3 and 4

print node 3 4

# Print out the state of element 1

print ele 1 2 3

『贰』 什么是比特币区块链的分叉

分叉有区别为普通的升级,普通的升级在升级前后是没有影响协议共识的,也一般不需要社区共识或算力共识的参与。而分叉根据对协议的修改情况分为软分叉和硬分叉。

现有的定义:

【闪电定义】硬分叉是指比特币区块格式或交易格式(这就是广泛流传的“共识”(应该是部分协议共识))发生改变时,未升级的节点拒绝验证已经升级的节点生产出的区块,不过已经升级的节点可以验证未升级节点生产出的区块,然后大家各自延续自己认为正确的链,所以分成两条链。

A permanent divergence in the the block chain, commonly occurs when non-upgraded nodes can’t validate blocks created by upgraded nodes that follow newer consensus rules.

【闪电定义】软分叉是指比特币交易的数据结构(这就是被广泛流传的“共识”(应该是部分协议共识))发生改变时,未升级的节点可以验证已经升级的节点生产出的区块,而且已经升级的节点也可以验证未升级的节点生产出的区块。

A temporary fork in the block chain which commonly occurs when miners using non-upgraded nodes violate a new consensus rule their nodes don’t know about.

我觉得不能说哪个定义正确还是错误,具体的定义可以根据已经较大社区共识的两者的区别来自己总结,不需要权威来指定。

硬分叉:没有向前兼容性,之前的版本将不可再用,需要强制升级。

软分叉:有较好的兼容性,之前版本至少部分功能可用,可不升级。

硬分叉:在区块链层面会有分叉的两条链,一条原旧链,一条分叉新链。

软分叉:在区块链层面没有分叉的链,只是组成链的区块,有新区块和旧区块。

硬分叉:需要在某个时间点全部同意分叉升级,不同意的将会进入原旧链。

软分叉:相当长的时间里,可允许不进行升级,继续使用原版本生成旧区块,与新区块并存

『叁』 在json对象中如何使用freemarker 以下这样写是错的。我想循环读取nodes的name。求救.

i为什么要这么做呢??你想要实现什么?
你知道前台怎么解析json吗??前台解析:如果json是数组对象,可以遍历,如果是不那么就得通过xx.name的形式得到值,所以你说的这个实现不了!第二点:建议你好好看看json的格式。

『肆』 CANopen协议是什么意思

CANopen是流行于欧洲的一个国际标准协议,由CiA(CAN in Automation)组织维护和推广,最初的CANopen应用于工业自动化行业,但随着技术的发展,现在CANopen已经广泛的应用于农业,工业,医疗,航海等不同的领域,同时一些有名的工业以太网,也是基于CANopen来发展,比如EtherCAT, PowerLink等。就像profibus是在RS485基础上开发的应用层协议一样,简单点来说,CANopen是基于CAN总线的应用层协议,是对CAN总线通信的一种统一规范,适合于运动控制和其他自动化领域。如果你想要对CANopen有更深入全面的了解的话,我觉得你可以去参加虹科电子举办的CANopen培训班,好像他们有好几种班的,其中也有国际CANopen组织主席的课程,我听过他们的开发课程,很不错,学到挺多东西的。

『伍』 openstreetmap怎么导入oracle

OpenStreetMap 2017年1月 全球数据导入Benchmark
配置:
Motherboard: ASUS Z-170AR
CPU: Intel Core i7 6700K @ 4GHZ
RAM: DDR4 64GB
SSD: SAMSUM 850 1TB
环境:
windows 7 x64 Host + Oracle VirtualBox (48GiB Virtual Memory) Archlinx
导入镜像情况:
[archosm@archosm planetosm]$ osm2pgsql -c -s -S"/home/archosm/osmstyle/openstreetmap-carto/openstreetmap-carto.style" -C32000 -dgis --drop --flat-nodes "./flat_node" ./planet-170109.osm.pbf
Setting up table: planet_osm_roads
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Allocating memory for sparse node cache
Sharing dense sparse
Node-cache: cache=32000MB, maxblocks=512000*65536, allocation method=11
Mid: loading persistent node cache from ./flat_node
Allocated space for persistent node cache file
Maximum node in persistent node cache: 0
Mid: pgsql, scale=100 cache=32000
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Reading in file: ./planet-170109.osm.pbf
Using PBF parser.
Processing: Node(3680419k 3687.8k/s) Way(386325k 133.22k/s) Relation(4178380 760.40/s)
Standard exception processing relation id=6244046: TopologyException: side location conflict at -8427146.1899999995 5064220.8799999999
Processing: Node(3680419k 3687.8k/s) Way(386325k 133.22k/s) Relation(4418610 771.94/s)
Standard exception processing relation id=6540291: TopologyException: side location conflict at -85245.029999999999 6666499.7699999996
Processing: Node(3680419k 3687.8k/s) Way(386325k 133.22k/s) Relation(4602380 780.20/s)
Standard exception processing relation id=6752256: TopologyException: side location conflict at 538047.93000000005 5671707.1900000004
Processing: Node(3680419k 3687.8k/s) Way(386325k 133.22k/s) Relation(4697380 785.25/s) parse time: 9880s
Node stats: total(3680419136), max(4597265847) in 998s
Way stats: total(386325131), max(464638647) in 2900s
Relation stats: total(4698016), max(6861619) in 5982s
Maximum node in persistent node cache: 4598005759
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Mid: loading persistent node cache from ./flat_node
Maximum node in persistent node cache: 4598005759
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
Mid: loading persistent node cache from ./flat_node
Maximum node in persistent node cache: 4598005759
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
Mid: loading persistent node cache from ./flat_node
Maximum node in persistent node cache: 4598005759
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
Mid: loading persistent node cache from ./flat_node
Maximum node in persistent node cache: 4598005759
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
Going over pending ways...
264334285 ways are pending
Using 4 helper-processes
Finished processing 264334285 ways in 19052 s
264334285 Pending ways took 19052s at a rate of 13874.36/s
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Going over pending relations...
0 relations are pending
[detached from 1186.import]
[archosm@archosm ~]$ exitations in 0 s
logout
Connection to 192.168.1.10 closed.osm_point
WARNING: there is no transaction in progress
gougoumimi@gougoumimi-PC MINGW64 ~osm_line
$ qtcreator &
[1] 1964ng transaction for planet_osm_polygon
WARNING: there is no transaction in progress
gougoumimi@gougoumimi-PC MINGW64 ~osm_roads
$ ssh [email protected]
[email protected]'s password: _osm_point
Last login: Mon Jan 16 17:31:37 2017 from 10.0.2.2
[archosm@archosm ~]$ screen -r import_line
WARNING: there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING: there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING: there is no transaction in progress
Committing transaction for planet_osm_point
WARNING: there is no transaction in progress
Committing transaction for planet_osm_line
WARNING: there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING: there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING: there is no transaction in progress
Committing transaction for planet_osm_point
WARNING: there is no transaction in progress
Committing transaction for planet_osm_line
WARNING: there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING: there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING: there is no transaction in progress
Sorting data and creating indexes for planet_osm_point
Stopping table: planet_osm_nodes
Stopping table: planet_osm_ways
Stopping table: planet_osm_rels
Sorting data and creating indexes for planet_osm_line
Sorting data and creating indexes for planet_osm_roads
Sorting data and creating indexes for planet_osm_polygon
Stopped table: planet_osm_nodes in 0s
Stopped table: planet_osm_rels in 0s
Stopped table: planet_osm_ways in 0s
Copying planet_osm_roads to cluster by geometry finished
Creating geometry index on planet_osm_roads
Creating indexes on planet_osm_roads finished
All indexes on planet_osm_roads created in 1275s
Completed planet_osm_roads
Copying planet_osm_point to cluster by geometry finished
Creating geometry index on planet_osm_point
Creating indexes on planet_osm_point finished
All indexes on planet_osm_point created in 3349s
Completed planet_osm_point
Copying planet_osm_line to cluster by geometry finished
Creating geometry index on planet_osm_line
Creating indexes on planet_osm_line finished
All indexes on planet_osm_line created in 8424s
Completed planet_osm_line
Copying planet_osm_polygon to cluster by geometry finished
Creating geometry index on planet_osm_polygon
Using 4 helper-processes
Finished processing 0 relations in 0 s
Committing transaction for planet_osm_point
WARNING: there is no transaction in progress
Committing transaction for planet_osm_line
WARNING: there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING: there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING: there is no transaction in progress
Committing transaction for planet_osm_point
WARNING: there is no transaction in progress
Committing transaction for planet_osm_line
WARNING: there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING: there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING: there is no transaction in progress
Committing transaction for planet_osm_point
WARNING: there is no transaction in progress
Committing transaction for planet_osm_line
WARNING: there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING: there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING: there is no transaction in progress
Committing transaction for planet_osm_point
WARNING: there is no transaction in progress
Committing transaction for planet_osm_line
WARNING: there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING: there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING: there is no transaction in progress
Sorting data and creating indexes for planet_osm_point
Stopping table: planet_osm_nodes
Stopping table: planet_osm_ways
Stopping table: planet_osm_rels
Sorting data and creating indexes for planet_osm_line
Sorting data and creating indexes for planet_osm_roads
Sorting data and creating indexes for planet_osm_polygon
Stopped table: planet_osm_nodes in 0s
Stopped table: planet_osm_rels in 0s
Stopped table: planet_osm_ways in 0s
Copying planet_osm_roads to cluster by geometry finished
Creating geometry index on planet_osm_roads
Creating indexes on planet_osm_roads finished
All indexes on planet_osm_roads created in 1275s
Completed planet_osm_roads
Copying planet_osm_point to cluster by geometry finished
Creating geometry index on planet_osm_point
Creating indexes on planet_osm_point finished
All indexes on planet_osm_point created in 3349s
Completed planet_osm_point
Copying planet_osm_line to cluster by geometry finished
Creating geometry index on planet_osm_line
Creating indexes on planet_osm_line finished
All indexes on planet_osm_line created in 8424s
Completed planet_osm_line
Copying planet_osm_polygon to cluster by geometry finished
Creating geometry index on planet_osm_polygon
Creating indexes on planet_osm_polygon finished
All indexes on planet_osm_polygon created in 13787s
Completed planet_osm_polygon
Maximum node in persistent node cache: 4598005759

热点内容
虚拟币圈知识星球 发布:2024-11-16 09:33:31 浏览:372
比特币交易去中心化为什么还要平台 发布:2024-11-16 09:32:11 浏览:229
盈路证券usdt入金 发布:2024-11-16 09:28:34 浏览:814
审核比特币etf 发布:2024-11-16 09:13:52 浏览:146
元宇宙宏观经济分析 发布:2024-11-16 09:07:16 浏览:484
百草区块链下 发布:2024-11-16 09:07:07 浏览:430
偷电挖比特币划算吗 发布:2024-11-16 08:55:07 浏览:457
fil矿机挖矿 发布:2024-11-16 08:37:44 浏览:395
手机版我的世界挖矿井 发布:2024-11-16 08:36:01 浏览:799
区块链只涨不跌原理 发布:2024-11-16 08:28:07 浏览:249