JPS626255B2 - - Google Patents
Info
- Publication number
- JPS626255B2 JPS626255B2 JP55086841A JP8684180A JPS626255B2 JP S626255 B2 JPS626255 B2 JP S626255B2 JP 55086841 A JP55086841 A JP 55086841A JP 8684180 A JP8684180 A JP 8684180A JP S626255 B2 JPS626255 B2 JP S626255B2
- Authority
- JP
- Japan
- Prior art keywords
- record position
- file
- reading
- block
- records
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本発明は、キー付きレコードが記録されている
順編成フアイルの読込み方式において、キーの範
囲を指定し、指定キー範囲に属するキーを持つレ
コードを上記順編成フアイルから高速で読込み得
るようにした順編成フアイルの読込み方式に関す
るものである。
有限要素法は構造解析や流体解析、電磁解析な
どに利用されている。第1図は板の変形量を有限
要素法で求める場合を説明するためのものであ
る。第1図において、1ないし24は節点番号、
ないしは有限要素の番号を示している。板の
剛性マトリツクスを〓、荷重ベクトルを〓、各部
の変形量を〓とするとき、
〓・〓=〓
なる式が成立する。構造解析の目的は力が加わつ
たときの変形量を知ることにある。有限要素法に
よつて各部の変形量を求める場合には、先ず有限
要素に対する材質と節点座標値とにより、各要素
毎に剛性と荷重と計算する。この計算において
は、
〓i・〓=〓i
なる式が用いられる。次に各有限要素の剛性と荷
重を節点毎に加え合せ、全体の式を組立てる。こ
の計算においては、
The present invention provides a method for reading a sequential file in which keyed records are recorded, in which a range of keys is specified and records having keys belonging to the specified key range can be read from the sequential file at high speed. This relates to the method of reading organization files. The finite element method is used for structural analysis, fluid analysis, electromagnetic analysis, etc. FIG. 1 is for explaining the case where the amount of deformation of a plate is determined by the finite element method. In Fig. 1, 1 to 24 are node numbers,
Or it shows the number of the finite element. When the rigidity matrix of the plate is 〓, the load vector is 〓, and the amount of deformation of each part is 〓, the formula 〓・〓=〓 holds true. The purpose of structural analysis is to know the amount of deformation when force is applied. When determining the amount of deformation of each part using the finite element method, first, the stiffness and load are calculated for each element based on the material and nodal coordinate values for the finite element. In this calculation, the formula 〓i・〓=〓i is used. Next, add the stiffness and load of each finite element for each node to assemble the entire equation. In this calculation,
【式】
なる式が用いられる。
第2図は順編成フアイルを示すものである。有
限要素法による構造解析などをデイジタル計算機
を用いて行う場合、順編成フアイルには各有限要
素に対応したレコードが多数(例えば数十ないし
数万個)が記録される。各レコードには、キーと
して4個の節点番号が記入され、またデータとし
て剛性マトリツクスが記入されている。順編成フ
アイルに記録されているデータの全てを主メモリ
に格納することは不可能であるので、データを複
数のブロツクに分割し、ブロツク単位で剛性マト
リツクス・データを読込んでいる。ブロツクに分
割する方法であるが、第3図に示すように節点番
号1ないし4のいずれかをキーとして有するレコ
ードの集合をブロツク1とし、節点番号5ないし
8のいずれかをキーとして有するレコードの集合
をブロツク2とし、節点番号9ないし12のいず
れかをキーとして有するレコードの集合をブロツ
ク3とする。以下、第3図に示す通りである。
従来技術においては、ブロツク1を順編成フア
イルから読み出す場合には、順編成フアイルを始
めから終りまで読んでブロツク1を抽出し、ブロ
ツク2ないしブロツク6のそれぞれを読込む場合
にも同様な処理を行つている。したがつて、従来
方式を用いてブロツク1ないし6を第2図の如き
順編成フアイルから読込もうとすると、レコード
読込み回数は15×6=90となり、読込みに要する
時間が著しく長くなる。
本発明は、上記の欠点を除去するものであつ
て、指定されたキー範囲に属するキーをもつレコ
ードを順編成フアイルから高速で読込み得るよう
にした順編成フアイルの読込み方式を提供するこ
とを目的としている。そしてそのため、本発明の
順編成フアイルの読込み方式は、指定範囲のキー
をもつレコード群より成る複数のブロツクをキー
付きレコードをもつ順編成フアイルから読込む順
編成フアイルの読込方式であつて、第1ないし第
n記入欄を有し第i(i=1、2、………、n)
記入欄にはブロツクiのキー範囲が記入された指
定範囲の設定器と、第1ないし第n記入欄を有し
第i(i=1、2、………、n)記入欄にはブロ
ツクiの最初のレコード位置と最後のレコード位
置とが記録されるレコード位置レジスタ装置と、
上記指定範囲の設定器の内容を参照しながら上記
順編成フアイルを最初から最後まで続み上記レコ
ード位置レジスタ装置に各ブロツクの最初のレコ
ード位置と最後のレコード位置を記録する手段
と、上記順編成フアイルからのブロツクの読込み
作業を上記レコード位置レジスタ装置に記録され
た記録情報を参照しながら行う手段を具備するこ
とを特徴とするものである。以下、本発明を図面
を参照しつつ説明する。
第4図は本発明の1実施例を説明するものであ
る。第4図において、31はレコード位置カウン
タ、32は指定範囲のカウンタ、33はレコード
位置レジスタ装置、34は検索判定器、35はレ
コード位置設定器、36は指定範囲の設定器、3
7は読取器、38は制御器、39は入力用の順編
成フアイルをそれぞれ示している。
第4図のシステムを第3図を参照しつつ説明す
る。レコード位置カウンタ31は、入力フアイル
39の現在のレコードを保持するものである。レ
コード位置レジスタ装置33は、第1記入欄ない
し第6記入欄を有しており、第i記入欄にはブロ
ツクiの最初レコード位置番号と最後のレコード
位置番号が書込まれる。指定範囲のカウンタ32
は、第幾番目のブロツクの読込みを行うべきかを
指示するものである。検索判定器4は、レコード
位置カウンタ31とレコード位置レジスタ装置3
3の内容とを比較して読込み開始と読込み終了を
処理装置へ通知すると共に、読込み終了を検出し
た時点でカウンタ32の内容を+1し、更に、次
のブロツクの最初のレコード位置への入力フアイ
ル39の位置付けを制御器38に依頼する。指定
範囲の設定器36は、第1記入欄ないし第6記入
欄を有し、第i記入欄にはブロツクiの節点番号
が記入されている。例えば指定範囲の設定器36
の第1記入欄には節点番号1,2,3,4が記入
されている。レコード位置設定器35は、読取器
37から送られて来るキー番号と指定範囲の内容
とを比較し、一致するものがあればその時のレコ
ード番号をレコード位置レジスタ装置33の対応
する記入欄に記入する。レコード位置レジスタ装
置33の記入欄に最初に書込まれるレコード番号
は、その記入欄の左側フイールドおよび右側フイ
ールドに書込まれ、第2番目以降のレコード番号
は右側のフイールドに上書きされる。
レコードの読込み作業は次のようにして行われ
る。先ず、指定範囲の設定器36にブロツク1な
いし6の節点番号が記入される。次に、レコード
1ないし15の読出しを行つてレコード位置レジ
スタ装置33へのデータの書込みとブロツク1の
読込みを行う。これにより、レコード位置レジス
タ装置33にブロツク1ないし6のそれぞれに対
する最初のレコード位置番号および最後のレコー
ド位置番号が書込まれるので、これ以後はレコー
ド位置レジスタ33を参照してブロツク2ないし
6の読込みが行われる。第4図の実施例によれ
ば、第3図のようなブロツク1ないし6の読込み
を
15+6+6+6+6+3=42(回)
で行うことが出来る。
第5図は本発明の第2実施例を示すものであ
る。第5図において、40は入力フアイル、41
は出力フアイル、42は作業フアイル、43と4
4はレコード位置レジスタ装置、45と46は読
込み制御部、47はブロツク組立部をそれぞれ示
している。第2実施例はブロツクが多数存在する
ときに好適なものであつて、多数のブロツクを複
数のグループに分割し、先ず1個のグループを選
択し、次に選択されたグループの中からブロツク
を選択するものである。レコード位置レジスタ装
置43にはグループの最初のレコード位置と最後
のレコード位置が記録され、レコード位置レジス
タ装置44にはブロツクの最初のレコード位置と
最後のレコード位置とが記録されている。先ず、
入力フアイル40からレコードの読出しが行わ
れ、レコード位置レジスタ装置43で指定された
範囲のレコードが全て作業フアイル42に格納さ
れる。次に、作業フアイル42からレコードの読
出しが行われ、レコード位置レジスタ装置44の
内容に基づいて各ブロツクの組立てが行われ、組
立てられたブロツクが出力フアイル41に格納さ
れる。
以上の説明から明らかなように、本発明によれ
ば、指定範囲のキーを持つブロツクの順編成フア
イルから読込みを高速で行うことが出来る。[Formula] The following formula is used. FIG. 2 shows a sequential file. When performing structural analysis using a finite element method using a digital computer, a large number of records (for example, tens to tens of thousands) corresponding to each finite element are recorded in the sequential file. In each record, four node numbers are written as keys, and a stiffness matrix is written as data. Since it is impossible to store all of the data recorded in the sequential file in the main memory, the data is divided into a plurality of blocks and the stiffness matrix data is read in blocks. In this method of dividing into blocks, as shown in Figure 3, a set of records having node numbers 1 to 4 as a key is defined as block 1, and a set of records having node numbers 5 to 8 as a key is defined as block 1. Let the set be block 2, and let the set of records having any one of node numbers 9 to 12 as a key be block 3. The following is as shown in FIG. In the conventional technology, when reading block 1 from a sequential file, the sequential file is read from beginning to end to extract block 1, and when reading each of blocks 2 to 6, the same process is performed. I'm going. Therefore, when attempting to read blocks 1 to 6 from a sequential file as shown in FIG. 2 using the conventional method, the number of records read is 15×6=90, which significantly increases the time required for reading. SUMMARY OF THE INVENTION An object of the present invention is to eliminate the above-mentioned drawbacks, and to provide a sequential file reading method that allows records having keys belonging to a specified key range to be read from a sequential file at high speed. It is said that Therefore, the sequential file reading method of the present invention is a sequential file reading method in which a plurality of blocks consisting of a group of records having keys in a specified range are read from a sequential file having keyed records. 1 to nth entry field, and i-th (i=1, 2, ......, n)
The entry field has a specified range setter in which the key range of block i is entered, and the first to nth entry fields, and the i-th (i = 1, 2, ......, n) entry field contains the block i. a record position register device in which a first record position and a last record position of i are recorded;
means for continuing the sequential file from beginning to end while referring to the contents of the specified range setter and recording the first record position and last record position of each block in the record position register device; The present invention is characterized by comprising means for reading blocks from a file while referring to recorded information recorded in the record position register device. Hereinafter, the present invention will be explained with reference to the drawings. FIG. 4 explains one embodiment of the present invention. In FIG. 4, 31 is a record position counter, 32 is a specified range counter, 33 is a record position register device, 34 is a search determiner, 35 is a record position setter, 36 is a specified range setter, 3
7 is a reader, 38 is a controller, and 39 is a sequential file for input. The system of FIG. 4 will be explained with reference to FIG. The record position counter 31 holds the current record of the input file 39. The record position register device 33 has a first entry field to a sixth entry field, and the first record position number and the last record position number of block i are written in the i-th entry field. Specified range counter 32
indicates the number of blocks to be read. The search determiner 4 includes a record position counter 31 and a record position register device 3.
3 and notifies the processing device of the start and end of reading, and when the end of reading is detected, the contents of the counter 32 are incremented by 1, and the input file is input to the first record position of the next block. 39 is requested from the controller 38. The designated range setter 36 has first to sixth entry fields, and the i-th entry field is filled with the node number of block i. For example, the specified range setting device 36
Node numbers 1, 2, 3, and 4 are entered in the first entry field. The record position setting device 35 compares the key number sent from the reader 37 with the contents of the specified range, and if there is a match, writes the current record number in the corresponding entry field of the record position register device 33. do. The first record number written in the entry field of the record position register device 33 is written in the left field and right field of the entry field, and the second and subsequent record numbers are overwritten in the right field. The record reading operation is performed as follows. First, the node numbers of blocks 1 to 6 are entered in the designated range setter 36. Next, records 1 to 15 are read, data is written to the record position register device 33, and block 1 is read. As a result, the first record position number and the last record position number for each of blocks 1 to 6 are written to the record position register device 33. From now on, the record position register 33 is referred to when reading blocks 2 to 6. will be held. According to the embodiment shown in FIG. 4, reading of blocks 1 to 6 as shown in FIG. 3 can be performed in 15+6+6+6+6+3=42 (times). FIG. 5 shows a second embodiment of the invention. In FIG. 5, 40 is an input file, 41
is the output file, 42 is the work file, 43 and 4
4 is a record position register device, 45 and 46 are reading control sections, and 47 is a block assembly section. The second embodiment is suitable when there are a large number of blocks, and it divides the large number of blocks into a plurality of groups, first selects one group, and then selects blocks from the selected group. It is a choice. The record position register device 43 records the first record position and the last record position of the group, and the record position register device 44 records the first record position and the last record position of the block. First of all,
Records are read from the input file 40, and all records within the range specified by the record position register device 43 are stored in the work file 42. Next, records are read from the work file 42, each block is assembled based on the contents of the record position register device 44, and the assembled blocks are stored in the output file 41. As is clear from the above description, according to the present invention, blocks having keys in a specified range can be read from a sequential file at high speed.
第1図の板の変形量を有限要素法で求める場合
を説明する図、第2図は順編成フアイルを説明す
る図、第3図はブロツク、ブロツクの属するレコ
ードがキーとして持つ節点番号並びにブロツクの
最初のレコード位置および最後のレコード位置の
関係を示す図、第4図は本発明の1実施例のブロ
ツク図、第5図は本発明の第2実施例のブロツク
図である。
31……レコード位置カウンタ、32……指定
範囲のカウンタ、33……レコード位置レジスタ
装置、34……検索判定器、35……レコード位
置設定器、36……指定範囲の設定器、37……
読取器、38……制御器、39……順編成フアイ
ル、40……入力フアイル、41……出力フアイ
ル、42……作業フアイル、43と44……レコ
ード位置レジスタ装置、45と46……読込み制
御部、47……ブロツク組立部。
Figure 1 is a diagram explaining the case where the amount of deformation of a plate is determined by the finite element method, Figure 2 is a diagram explaining a sequential file, and Figure 3 is a diagram showing blocks, node numbers held as keys by records to which blocks belong, and blocks. FIG. 4 is a block diagram of one embodiment of the present invention, and FIG. 5 is a block diagram of a second embodiment of the present invention. 31...Record position counter, 32...Specified range counter, 33...Record position register device, 34...Search determiner, 35...Record position setter, 36...Specified range setter, 37...
Reader, 38...controller, 39...sequential file, 40...input file, 41...output file, 42...work file, 43 and 44...record position register device, 45 and 46...reading Control section, 47...Block assembly section.
Claims (1)
数のブロツクをキー付きレコードをもつ順編成フ
アイルから読込む順編成フアイルの読込方式であ
つて、第1ないし第n記入欄を有し第i(i=
1、2、………、n)記入欄にはブロツクiのキ
ー範囲が記入された指定範囲の設定器と、第1な
いし第n記入欄を有し第i(i=1、2、……
…、n)記入欄にはブロツクiの最初のレコード
位置と最後のレコード位置とが記録されるレコー
ド位置レジスタ装置と、上記指定範囲の設定器の
内容を参照しながら上記順編成フアイルを最初か
ら最後まで読み上記レコード位置レジスタ装置に
各ブロツクの最初のレコード位置と最後のレコー
ド位置を記録する手段と、上記順編成フアイルか
らのブロツクの読込み作業を上記レコード位置レ
ジスタ装置に記録された記録情報を参照しながら
行う手段を具備することを特徴とする順編成フア
イルの読み込み方式。1 A reading method for a sequential file in which multiple blocks consisting of a group of records with keys in a specified range are read from a sequential file having keyed records, which has the first to nth entry fields and the i(i =
1, 2, . …
..., n) The record position register device in which the first record position and last record position of block i are recorded in the entry field, and the sequential organization file from the beginning while referring to the contents of the specified range setter. means for reading to the end and recording the first record position and last record position of each block in the record position register device; and means for reading the block from the sequential file by recording the recorded information recorded in the record position register device. A sequential file reading method characterized by having a means for reading while referring to the file.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8684180A JPS5713546A (en) | 1980-06-26 | 1980-06-26 | Read system of sequential formation file |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8684180A JPS5713546A (en) | 1980-06-26 | 1980-06-26 | Read system of sequential formation file |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5713546A JPS5713546A (en) | 1982-01-23 |
| JPS626255B2 true JPS626255B2 (en) | 1987-02-09 |
Family
ID=13898033
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8684180A Granted JPS5713546A (en) | 1980-06-26 | 1980-06-26 | Read system of sequential formation file |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5713546A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3424236B2 (en) * | 1991-06-28 | 2003-07-07 | 日本電気株式会社 | Data input/output device with table interface |
-
1980
- 1980-06-26 JP JP8684180A patent/JPS5713546A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5713546A (en) | 1982-01-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5117495A (en) | Method of sorting data records | |
| US5724500A (en) | Multiple writing volume backup method | |
| JPS63121179A (en) | Staging method | |
| JPS626255B2 (en) | ||
| US3411145A (en) | Multiplexing and demultiplexing of related time series data records | |
| JPH0782429B2 (en) | How to merge multiple files | |
| JPS5851348A (en) | High-speed access system for variable-length record | |
| JPH03225412A (en) | File data read system | |
| JPH0145648B2 (en) | ||
| JPS63239521A (en) | Data processing method of magnetic tape device | |
| JP3328849B2 (en) | Data writing processor | |
| JPS5858703B2 (en) | Information processing method | |
| JPH0833900B2 (en) | Content retrieval device | |
| JPH01270127A (en) | Data retrieval processing system | |
| JPH0275018A (en) | Merge processing method | |
| JPH04373074A (en) | Electronic filing system | |
| JPH03280136A (en) | Record positioning system for sequentially programmed file | |
| JPH07141112A (en) | External memory control unit | |
| JPS62177642A (en) | File management system for postscript filing device | |
| JPH01128121A (en) | Magnetic disk processor | |
| JPS6286444A (en) | Record edition system | |
| JPS62288930A (en) | Continuous address sequence input system | |
| JPS63253431A (en) | Retrieving system for data base of inverted structure | |
| JPS62134718A (en) | Data access control system | |
| JPS60178508A (en) | Input signal recorder of numerical controller |