當前位置:首頁 » 比特幣問答 » 比特幣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-15 02:43:04 瀏覽:488
我的勇者挖礦是什麼 發布:2024-11-15 02:23:34 瀏覽:249
比特幣源碼私鑰生成 發布:2024-11-15 02:06:18 瀏覽:262
火力挖礦app 發布:2024-11-15 02:01:52 瀏覽:176
數字貨幣買入點分析 發布:2024-11-15 01:49:36 瀏覽:842
晉城幣圈 發布:2024-11-15 01:49:34 瀏覽:872
買賣比特幣合法嗎問題是否我願意 發布:2024-11-15 01:40:13 瀏覽:621
央行法定數字貨幣能增值 發布:2024-11-15 01:11:15 瀏覽:864
比特幣賺錢見點 發布:2024-11-15 01:00:48 瀏覽:870
怎麼查幣圈訊息 發布:2024-11-15 00:18:57 瀏覽:224