JP3099752B2 - Simulation system, steering method in simulation system - Google Patents
Simulation system, steering method in simulation systemInfo
- Publication number
- JP3099752B2 JP3099752B2 JP25866896A JP25866896A JP3099752B2 JP 3099752 B2 JP3099752 B2 JP 3099752B2 JP 25866896 A JP25866896 A JP 25866896A JP 25866896 A JP25866896 A JP 25866896A JP 3099752 B2 JP3099752 B2 JP 3099752B2
- Authority
- JP
- Japan
- Prior art keywords
- simulation
- input
- steering operation
- shared memory
- unit
- 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 - Fee Related
Links
- 238000004088 simulation Methods 0.000 title claims description 62
- 238000000034 method Methods 0.000 title claims description 20
- 230000003252 repetitive effect Effects 0.000 claims description 8
- 238000012804 iterative process Methods 0.000 claims 1
- 238000003672 processing method Methods 0.000 claims 1
- 125000004079 stearyl group Chemical group [H]C([*])([H])C([H])([H])C([H])([H])C([H])([H])C([H])([H])C([H])([H])C([H])([H])C([H])([H])C([H])([H])C([H])([H])C([H])([H])C([H])([H])C([H])([H])C([H])([H])C([H])([H])C([H])([H])C([H])([H])C([H])([H])[H] 0.000 claims 1
- 239000012530 fluid Substances 0.000 description 9
- 238000004364 calculation method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Description
【発明の属する技術分野】本発明は、シミュレーション
プログラムの実行中に設定パラメータの変更を行うステ
アリング操作が可能なシミュレーションシステム、該シ
ミュレーションシステムにおけるステアリング方法およ
びステアリング用プログラムを記憶した記憶媒体に関す
る。[0001] 1. Field of the Invention [0002] The present invention relates to a simulation system capable of performing a steering operation for changing setting parameters during execution of a simulation program, a steering method in the simulation system, and a storage medium storing a steering program.
【0001】[0001]
【従来の技術】流体解析などの技術計算に関するシミュ
レーションにおいては、シミュレーションプログラムの
実行中に設定パラメータを意図的に変更し、変更後の状
態で同様のシミュレーションを行う場合がある。このよ
うにシミュレーションの実行形態をシミュレーションを
中断することなく動的に変更することを、ステアリング
操作という。2. Description of the Related Art In a simulation related to a technical calculation such as a fluid analysis, a setting parameter is intentionally changed during execution of a simulation program, and a similar simulation may be performed in a state after the change. Dynamically changing the simulation execution mode without interrupting the simulation in this manner is called a steering operation.
【0002】例えば、シミュレーションの出力される結
果に何らかの不具合が発見され、解析を一時中断し設定
パラメータを変更してシミュレーションを再開するよう
な場合に、ステアリング操作が行われる。このような場
合に、ステアリング操作を行えば、必ずしも初めからシ
ミュレーションをやり直す必要はなくなる。[0002] For example, a steering operation is performed in a case where some trouble is found in a result output from a simulation, analysis is temporarily stopped, setting parameters are changed, and the simulation is restarted. In such a case, if the steering operation is performed, it is not always necessary to restart the simulation from the beginning.
【0003】従来のステアリング操作では、ステアリン
グ操作のための入出力処理を行う入出力処理部をシミュ
レーションプログラムに予め組み込んでおくことにより
実現されていた。The conventional steering operation has been realized by incorporating an input / output processing unit for performing input / output processing for steering operation in a simulation program in advance.
【0004】ここで、従来の技術について、図4を参照
しながら説明する。Here, a conventional technique will be described with reference to FIG.
【0005】図4において、シミュレーションプログラ
ムG1は、プログラム内部のデータ領域の確保(プログ
ラム初期化)およびデータの読み込みを行う初期設定部
G2と、反復処理部分(G3〜G7)と、データ領域の
開放など(プログラム終了化)を行う終了化処理部G8
とからなる。In FIG. 4, a simulation program G1 has an initialization section G2 for securing a data area in the program (program initialization) and reading data, an iterative processing section (G3 to G7), and opening a data area. Termination processing unit G8 that performs such as (program termination)
Consists of
【0006】反復処理部分は、シミュレーションに関わ
る諸量の求解を行う演算処理部G6と、結果出力部G7
とを有する。反復処理部分はさらに、シミュレーション
に関わる設定パラメータの変更あるいは実行形態の変更
(一時停止、再実行、中断など)を行うステアリング操
作のための、入出力処理部G3、G4、G5を有する。[0006] The iterative processing part includes an arithmetic processing part G6 for solving various quantities related to the simulation, and a result output part G7.
And The iterative processing portion further includes input / output processing units G3, G4, and G5 for steering operation for changing setting parameters related to the simulation or changing the execution mode (pause, re-execution, interruption, and the like).
【0007】入出力処理部G3、G4、G5は、ステア
リング操作の要求の有無に関わらず、例えばシミュレー
ション上の時間の進行にともなう繰り返しの処理が行わ
れるごとに実行される。具体的には、問い合わせメッセ
ージ出力部G3が、ステアリング操作の問い合わせメッ
セージを出力装置H1に出力し、ステアリング操作入力
部G4が、入力装置H2からステアリング操作のための
入力があったか否かをチェックする。ここで、入力があ
った場合には、入力データチェック部G5が、その入力
内容の正当性/整合性チェックおよび必要なエラー処理
を行い、ステアリング操作によって変更された条件を演
算処理部G6に引き渡す。一方、入力が行われない場合
には、一定時間のステアリング操作の入力待ちを行い、
その後、演算処理部G6へ処理を引き渡す。The input / output processing units G3, G4, G5 are executed, for example, every time a repetitive process is performed with the progress of simulation time, regardless of the presence or absence of a steering operation request. Specifically, the inquiry message output unit G3 outputs a steering operation inquiry message to the output device H1, and the steering operation input unit G4 checks whether or not there is an input for steering operation from the input device H2. Here, if there is an input, the input data check unit G5 checks the validity / consistency of the input content and performs necessary error processing, and passes the condition changed by the steering operation to the arithmetic processing unit G6. . On the other hand, if no input is made, the system waits for an input of a steering operation for a certain time,
Thereafter, the processing is passed to the arithmetic processing unit G6.
【0008】[0008]
【発明が解決しようとする課題】しかしながら、この従
来のステアリング操作においては、ステアリング操作の
ための入出力によってシミュレーションプログラムの実
行が中断され、そのため、シミュレーションプログラム
の実行速度が低下してしまうという問題点があった。However, in this conventional steering operation, the execution of the simulation program is interrupted by input / output for the steering operation, so that the execution speed of the simulation program is reduced. was there.
【0009】本発明の目的は、高速に実行可能なシミュ
レーションシステムを提供することにある。An object of the present invention is to provide a simulation system which can be executed at high speed.
【0010】また、本発明の他の目的は、ステアリング
操作のための入出力によって実行が中断されることのな
いシミュレーションシステムを提供することにある。It is another object of the present invention to provide a simulation system whose execution is not interrupted by input / output for steering operation.
【0011】さらに、本発明の他の目的は、シミュレー
ションプログラムの実行速度を低下させないステアリン
グ方法ならびにステアリング用プログラムを記憶した記
憶媒体を提供することにある。Still another object of the present invention is to provide a steering method and a storage medium storing a steering program that do not reduce the execution speed of a simulation program.
【0012】[0012]
【課題を解決するための手段】 本発明の第1のシミュ
レーションシステムは、パラメータに基づく演算処理と
該演算処理の結果の出力処理とからなる繰り返し処理を
行うシミュレーションプログラムを実行するシミュレー
ション手段と、前記シミュレーション手段によるシミュ
レーションプログラムの実行中に、該シミュレーション
プログラムのパラメータを変更するステアリング操作命
令を入力する入出力インタフェース手段とからなるシミ
ュレーションシステムにおいて、前記入出力インタフェ
ース手段から入力されたステアリング操作命令を記憶す
る共有メモリ手段を備え、前記シミュレーション手段
は、前記シミュレーションプログラムの繰り返し処理ご
とに前記共有メモリ手段が更新されているかどうか判定
を行い、更新されている場合にのみ、前記共有メモリ手
段から前記ステアリング操作命令を読み込み、該命令に
基づいて前記シミュレーションプログラムのパラメータ
を変更した後、前記繰り返し処理を続行し、更新されて
いない場合には、現在のパラメータのままで前記繰り返
し処理を続行することを特徴とする。Means for Solving the Problems A first simulation system according to the present invention includes an arithmetic processing based on parameters and
Iterative processing consisting of output processing of the result of the arithmetic processing
And simulation means for executing a simulation program for performing, during execution of the simulation program by said simulation means, stain consisting output interface means for inputting steering operations instructions to change the parameters of the simulation program
The input / output interface
The steering operation command input from the
Said shared memory means, and said simulation means
Is the same as the above simulation program
Whether the shared memory means has been updated
The shared memory procedure only if it has been updated.
Read the steering operation command from the gear and
Parameters of the simulation program based on
After changing the
If not, repeat the above with the current parameters.
And continue the process .
【0013】 本発明の第2のシミュレーションシステ
ムは、上記第1のシミュレーションシステムにおいて、
前記入出力インタフェース手段は、前記ステアリング操
作命令を入力するステアリング操作入力部と、前記ステ
アリング操作入力部によって入力された前記ステアリン
グ操作命令の妥当性をチェックする入力データチェック
部と、前記入力データチェック部によって妥当と判断さ
れた前記ステアリング操作命令を前記共有メモリ手段に
書き込む共有メモリ書き込み部とを備えている。[0013] A second simulation system according to the present invention is the first simulation system, wherein :
The input / output interface unit includes a steering operation input unit that inputs the steering operation command, an input data check unit that checks the validity of the steering operation command input by the steering operation input unit, and the input data check unit. And a shared memory writing unit for writing the steering operation command determined to be valid by the shared memory means to the shared memory means.
【0014】本発明の第3のシミュレーションシステム
は、上記第2のシミュレーションシステムにおいて、前
記シミュレーション手段は、さらに、前記共有メモリ手
段を確保し、該共有メモリ手段のアドレス情報を前記入
出力インタフェース手段に受け渡す第1の初期設定部を
備え、前記入出力インタフェース手段は、さらに、前記
第1の初期設定部より前記アドレス情報を受信し、該ア
ドレス情報を前記共有メモリ書き込み部に通知するとと
もに、ステアリング操作を問い合わせるメッセージを出
力する第2の初期設定部を備えている。According to a third simulation system of the present invention, in the above-mentioned second simulation system, the simulation means further secures the shared memory means and sends address information of the shared memory means to the input / output interface means. A first initialization unit for transferring, the input / output interface unit further receives the address information from the first initialization unit, notifies the address information to the shared memory writing unit, and A second initial setting unit for outputting a message inquiring about the operation is provided.
【0015】 本発明の第1のシミュレーションシステ
ムにおけるステアリング方法は、パラメータに基づく演
算処理と該演算処理の結果の出力処理とからなる繰り返
し処理を行うシミュレーションプログラムを実行するシ
ミュレーション手段と、前記シミュレーション手段によ
るシミュレーションプログラムの実行中に、該シミュレ
ーションプログラムのパラメータを変更するステアリン
グ操作命令を入力する入出力インタフェース手段とから
なるシミュレーションシステムにおいて、前記入出力イ
ンタフェース手段がパラメータを変更するためのステア
リング操作命令を共有メモリ手段に記憶するステップ
と、前記シミュレーション手段が、前記シミュレーショ
ンプログラムの繰り返し処理ごとに前記共有メモリ手段
が更新されているかどうか判定を行い、更新されている
場合にのみ、前記共有メモリ手段から前記ステアリング
操作命令を読み込み、該命令に基づいて前記シミュレー
ションプログラムのパラメータを変更した後、前記繰り
返し処理を続行し、更新されていない場合には、現在の
パラメータのままで前記繰り返し処理を続行するステッ
プとを含んでいる。[0015] The steering method in the first simulation system according to the present invention is a method based on parameters.
Repetition consisting of arithmetic processing and output processing of the result of the arithmetic processing
From a simulation means for executing a simulation program to perform processing, during the execution of the simulation program by said simulation means, and output interface means for inputting steering operations instructions to change the parameters of the simulation program
In the simulation system,
Steer for the interface means to change the parameter
Storing the ring operation instruction in the shared memory means
And the simulation means comprises:
The shared memory means for each repetition of the program
Judge whether or not is updated.
Only if the steering from the shared memory means
The operation instruction is read, and the simulation is performed based on the instruction.
After changing the parameters of the
Continues the return process, and if not updated, returns the current
Step to continue the above-mentioned repetition processing with the parameters
And a flop.
【0016】 本発明の第2のシミュレーションシステ
ムにおけるステアリング方法は、上記第1のシミュレー
ションシステムにおけるステアリング方法において、前
記入出力インタフェース手段が前記ステアリング操作命
令を入力するステアリング操作入力ステップと、前記入
出力インタフェース手段が前記ステアリング操作入力ス
テップで入力された前記ステアリング操作命令の妥当性
をチェックする入力データチェックステップと、前記入
出力インタフェース手段が前記入力データチェックステ
ップで妥当と判断された前記ステアリング操作命令を前
記共有メモリ手段に書き込む共有メモリ書き込みステッ
プとを含んでいる。 [0016] Steering method in the second simulation system of the present invention is a steering method in the first simulation system, before
The input / output interface means controls the steering operation command.
And a steering operation inputting step of inputting a command.
An output interface means is provided for the steering operation input switch.
Validity of the steering operation command input in step
An input data check step for checking
Output interface means for input data check
The steering operation command determined to be
Shared memory write step for writing to shared memory means
And included.
【0017】 本発明の第3のシミュレーションシステ
ムにおけるステアリング方法は、上記第2のシミュレー
ションシステムにおけるステアリング方法において、前
記シミュレーション手段が、前記共有メモリ手段を確保
し、該共有メモリ手段のアドレス情報を前記入出力イン
タフェース手段に受け渡す第1の初期設定ステップと、
前記入出力インタフェース手段が、前記シミュレーショ
ン手段より前記アドレス情報を受信し、該アドレス情報
を前記共有メモリ書き込みステップに受け渡すととも
に、ステアリング操作を問い合わせるメッセージを出力
する第2の初期設定ステップとを含んでいる。 [0017] Steering method in the third simulation system of the present invention is a steering method in the second simulation system, before
Simulation means secures the shared memory means
And the address information of the shared memory means is input / output
A first initialization step for passing to the interface means;
The input / output interface means is configured to execute the simulation
Receiving the address information from the
To the shared memory writing step.
Output a message asking about steering operation
A second initial setting step.
【0018】[0018]
【0019】[0019]
【0020】[0020]
【0021】[0021]
【0022】[0022]
【0023】[0023]
【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して詳細に説明する。Next, embodiments of the present invention will be described in detail with reference to the drawings.
【0024】図1を参照すると、本発明の実施の形態
は、技術計算のシミュレーションプログラムA1と、ス
テアリング操作のための入出力インタフェースプログラ
ムB1と、記憶装置としての共有メモリC1と、キーボ
ードやマウスなどの入力装置C3と、ディスプレイや印
刷装置などの出力装置C2とを含む。なお、ステアリン
グ操作を行うための入出力処理部をもつ入出力インタフ
ェースプログラムB1とシミュレーションプログラムA
1とはUNIXシステム上で別個のプログラムとして存
在し、一般に、これらはマルチタスクで動作する。Referring to FIG. 1, an embodiment of the present invention includes a simulation program A1 for technical calculation, an input / output interface program B1 for steering operation, a shared memory C1 as a storage device, a keyboard and a mouse, and the like. And an output device C2 such as a display or a printing device. Note that an input / output interface program B1 having an input / output processing unit for performing a steering operation and a simulation program A
One exists as a separate program on the UNIX system, and generally they operate multitasking.
【0025】共有メモリC1は、複数のプログラムによ
る命令の書き込み/読み出しが可能な記憶装置である。The shared memory C1 is a storage device in which instructions can be written / read by a plurality of programs.
【0026】シミュレーションプログラムA1は、プロ
グラムの初期設定部A2と、反復処理部分(A3〜A
5)と、プログラムの終了化を行う終了化処理部A6と
を有する。The simulation program A1 includes a program initial setting section A2 and an iterative processing section (A3 to A3).
5) and a termination processing unit A6 for terminating the program.
【0027】プログラムの初期設定部A2は、プログラ
ムに用いられるデータの初期化、シミュレーション計算
に必要な各種初期条件の設定などを行った後、プログラ
ムで使用する共有メモリC1の確保を行い、この共有メ
モリC1のアドレス、サイズ等を含むメモリ識別子F1
を入出力インタフェースプログラムB1に受け渡す。The program initial setting section A2 initializes data used in the program, sets various initial conditions necessary for simulation calculation, and secures a shared memory C1 used in the program. Memory identifier F1 including address, size, etc. of memory C1
To the input / output interface program B1.
【0028】プログラムの反復処理部分は、共有メモリ
読み出し部A3と、シミュレーションに関わる諸量を求
解する演算処理部A4と、演算処理で求められた結果を
出力装置に出力する結果出力部A5を有する。このう
ち、共有メモリ読み出し部A3は、共有メモリC1が更
新されていない場合には、処理を行わず、共有メモリC
1が更新されている場合には、共有メモリC1からステ
アリング操作の命令を読み込み、シミュレーションに関
わる設定パラメータの変更あるいは実行形態の変更(一
時停止、再実行、中断、データのファイル出力など)な
どの処理を行う。なお、反復処理部分における処理A
3、A4、A5は、シミュレーションの状態が終了条件
を満たすまで繰り返される。The repetitive processing portion of the program has a shared memory readout section A3, an arithmetic processing section A4 for solving various quantities related to the simulation, and a result output section A5 for outputting the result obtained by the arithmetic processing to an output device. . When the shared memory C1 is not updated, the shared memory reading unit A3 does not perform any processing,
If 1 has been updated, a steering operation instruction is read from the shared memory C1, and a change in a setting parameter related to the simulation or a change in the execution mode (pause, re-execution, interruption, data file output, etc.) is performed. Perform processing. Processing A in the iterative processing part
3, A4 and A5 are repeated until the state of the simulation satisfies the termination condition.
【0029】一方、ステアリング操作のための入出力イ
ンタフェースプログラムB1は、初期設定部B2と、ス
テアリング操作入力部B3と、入力データチェック部B
4と、共有メモリ書き込み部B5とを有する。On the other hand, an input / output interface program B1 for steering operation includes an initial setting section B2, a steering operation input section B3, and an input data check section B.
4 and a shared memory writing unit B5.
【0030】初期設定部B2は、シミュレーションプロ
グラムA1から共有メモリC1のメモリ識別子F1を受
信するとともに、出力装置C2にステアリング操作の問
い合わせメッセージを出力する。The initial setting unit B2 receives the memory identifier F1 of the shared memory C1 from the simulation program A1, and outputs a steering operation inquiry message to the output device C2.
【0031】また、ステアリング操作入力部B3は、入
力装置C3よりデータを入力する。The steering operation input section B3 inputs data from the input device C3.
【0032】入力データチェック部B4は、ステアリン
グ操作入力部B3において読み込まれたデータが正当な
ステアリング操作の命令であるかどうかを判断し、正当
であれば処理を継続し、不当であれば処理をステアリン
グ操作入力部B3へ返す。The input data check unit B4 determines whether the data read in the steering operation input unit B3 is a valid steering operation command, and if the data is valid, the processing is continued. Return to steering operation input section B3.
【0033】共有メモリ書き込み部B5は、入力データ
チェック部B4からステアリング操作の命令を受け取
り、あらかじめ確保されている共有メモリC1に、ステ
アリング操作の命令を書き込む。The shared memory writing unit B5 receives a steering operation command from the input data check unit B4, and writes the steering operation command in the shared memory C1 that is reserved in advance.
【0034】次に、本発明の実施の形態の動作について
図面を参照しながら詳細に説明する。Next, the operation of the embodiment of the present invention will be described in detail with reference to the drawings.
【0035】図2は、本実施の形態の動作を示す流れ図
である。FIG. 2 is a flowchart showing the operation of the present embodiment.
【0036】なお、通常はシミュレーションプログラム
A1のみが起動し、ステアリング操作の要求が発生した
場合にのみ入出力インタフェースプログラムB1も起動
する。また、ステアリング操作の終了時には、入出力イ
ンタフェースプログラムB1は終了する。Normally, only the simulation program A1 is started, and the input / output interface program B1 is also started only when a request for steering operation occurs. At the end of the steering operation, the input / output interface program B1 ends.
【0037】シミュレーションプログラムA1におい
て、初期設定部A2は、まず、プログラム初期化を行う
(ステップD1)。そして、初期設定部A2は、プログ
ラムで使用する共有メモリC1の確保を行う。ここで、
共有メモリC1が正常に確保されると、UNIXシステ
ムより共有メモリC1のアドレス、サイズ等を含むメモ
リ識別子F1が発行されるので、このメモリ識別子F1
を入出力インタフェースプログラムB1へ出力すること
により、共有メモリC1のアドレス、サイズ等を通知す
る(ステップD2)。In the simulation program A1, the initial setting section A2 first performs program initialization (step D1). Then, the initial setting unit A2 secures the shared memory C1 used in the program. here,
When the shared memory C1 is normally secured, the UNIX system issues a memory identifier F1 including the address, size, and the like of the shared memory C1.
Is output to the input / output interface program B1 to notify the address, size, and the like of the shared memory C1 (step D2).
【0038】また、共有メモリ読み出し部A3は、共有
メモリC1が更新されているかどうか判定を行い(ステ
ップD3)、更新されている場合にのみ共有メモリC1
の参照を行い、シミュレーションプログラムA1の各種
パラメータを変更する(ステップD4)。そして、演算
処理部A4がこの変更されたパラメータに基づいてシミ
ュレーションに関わる諸量を求解する演算処理を行い
(ステップD5)、この演算処理の結果を結果出力部A
5が出力する(ステップD6)。The shared memory read unit A3 determines whether or not the shared memory C1 has been updated (step D3). Only when the shared memory C1 has been updated, the shared memory C1 is updated.
To change various parameters of the simulation program A1 (step D4). Then, the arithmetic processing section A4 performs an arithmetic processing for solving various quantities related to the simulation based on the changed parameters (step D5), and outputs the result of the arithmetic processing to the result output section A
5 is output (step D6).
【0039】共有メモリC1が更新されていない場合
は、演算処理部A4が現在のパラメータに基づく演算処
理を行い(ステップD5)、この演算処理の結果を結果
出力部A5が出力する(ステップD6)。If the shared memory C1 has not been updated, the arithmetic processing section A4 performs arithmetic processing based on the current parameters (step D5), and the result of this arithmetic processing is output from the result output section A5 (step D6). .
【0040】さらに、終了化処理部A6は、プログラム
の終了条件が満たされているかどうかの判定を行い(ス
テップD7)、終了条件が満たされている場合には、共
有メモリC1の解放を行って、処理を終了する(ステッ
プD8)。Further, the termination processing unit A6 determines whether or not the termination condition of the program is satisfied (step D7), and if the termination condition is satisfied, releases the shared memory C1. , And the process ends (step D8).
【0041】一方、入出力インタフェースプログラムB
1は、ステアリング操作の要求によって起動し、これと
同時に、初期設定部B2が、共有メモリC1のメモリ識
別子F1を獲得する(ステップE1)。また、初期設定
部B2は、ステアリング操作の入力を問い合わせるメッ
セージを出力装置C2に出力する(ステップE2)。On the other hand, the input / output interface program B
1 is activated by a request for a steering operation, and at the same time, the initial setting unit B2 acquires the memory identifier F1 of the shared memory C1 (step E1). Further, the initial setting unit B2 outputs a message inquiring about the input of the steering operation to the output device C2 (step E2).
【0042】次に、ステアリング操作入力部B3は、ス
テアリング操作命令の入力を行い(ステップE3)、エ
ラーチェックを経た上で、この命令を、初期設定部B2
が受信したメモリ識別子F1に対応する共有メモリC1
に書き出す(ステップE4)。連続してステアリング操
作が行われる場合には、さらに操作命令の入力および共
有メモリC1への書き出しが行われる。Next, the steering operation input section B3 inputs a steering operation command (step E3), and after an error check, inputs this command to the initial setting section B2.
Shared memory C1 corresponding to the received memory identifier F1
(Step E4). When the steering operation is continuously performed, the input of the operation command and the writing to the shared memory C1 are further performed.
【0043】さらに、入出力インタフェースプログラム
B1は、ステアリング操作の終了判定を行い(ステップ
E5)、ステアリング操作が終了した場合には、入出力
インタフェースプログラムB1は終了する。Further, the input / output interface program B1 determines the end of the steering operation (step E5), and when the steering operation ends, the input / output interface program B1 ends.
【0044】以上により、本発明の実施の形態の動作が
終了する。With the above, the operation of the embodiment of the present invention is completed.
【0045】本実施の形態は、ステアリング操作のため
の入出力を行う入出力インタフェースプログラムを設
け、入出力データは共有メモリを介してシミュレーショ
ンプログラムに受け渡すようにしたことにより、ステア
リング操作のための入出力によってシミュレーションプ
ログラムの実行が中断されないようにすることができる
という効果を有している。In the present embodiment, an input / output interface program for performing input / output for steering operation is provided, and input / output data is transferred to a simulation program via a shared memory. This has the effect that the execution of the simulation program can be prevented from being interrupted by input and output.
【0046】また、ステアリング操作のための入出力に
よってシミュレーションプログラムの実行が中断されな
いようにしたことにより、シミュレーションプログラム
を高速に実行することができるという効果を有してい
る。Further, by preventing the execution of the simulation program from being interrupted by the input / output for steering operation, the simulation program can be executed at a high speed.
【0047】[0047]
【実施例】次に、本発明の実施の形態の一実施例の動作
を図面を参照しながら詳細に説明する。Next, the operation of an embodiment of the present invention will be described in detail with reference to the drawings.
【0048】図3は、一般的なステアリング操作の実行
を流体解析を例にして示したものである。FIG. 3 shows the execution of a general steering operation using fluid analysis as an example.
【0049】流体解析は、流体の流れを支配するナビエ
ストークス方程式について、方程式を求解し、流体の圧
力や速度などの物理量を算出するシミュレーションであ
る。この流体解析において、方程式を解く際の設定パラ
メータとしては、例えば流体の物理量や解析領域の境界
条件などがある。The fluid analysis is a simulation for solving the Navier-Stokes equations governing the flow of a fluid and calculating physical quantities such as pressure and velocity of the fluid. In the fluid analysis, the setting parameters for solving the equations include, for example, physical quantities of the fluid and boundary conditions of the analysis region.
【0050】ところで、このナビエストークス方程式
は、時間・空間の偏微分方程式であるので、偏微分方程
式の解法の一つである反復解法を用い、有限差分法を適
用する。有限差分法は、ナビエストークス方程式におけ
る時間微分および空間微分をそれぞれ差分形式に変換
し、微小時間および微小空間で区切った差分式として表
現する。この差分式の反復計算における一回の演算で
は、ある時刻での空間の物理量が求まる。物理量が求ま
ると、ある一定時刻だけ時間を進めて、次の反復計算の
時刻における流体の物理量が求まる。この処理の繰り返
しによって、時間ごとの物理量が求まる。ここで、流体
解析における諸パラメータは、一般に反復計算の進展過
程において、変更可能である。Since the Navier-Stokes equation is a partial differential equation in time and space, a finite difference method is applied using an iterative solution which is one of the solutions of the partial differential equation. In the finite difference method, the time derivative and the spatial derivative of the Navier-Stokes equation are converted into a difference form, respectively, and expressed as a difference expression divided by a minute time and a minute space. In one operation in the iterative calculation of the difference equation, a physical quantity of the space at a certain time is obtained. When the physical quantity is obtained, the time is advanced by a certain time, and the physical quantity of the fluid at the time of the next iterative calculation is obtained. By repeating this process, a physical quantity for each time is obtained. Here, various parameters in the fluid analysis can be generally changed during the progress of the iterative calculation.
【0051】図3のように、例えば、2次元の平行板内
に長方形の障害物K2が存在する時の空気の流れの様子
を解析する。ここで、解析の初期には解析領域K1の入
口および出口ともに解放されていて、また、入口からの
空気の流入速度はv1で一定であるとし、その他の各種
条件は任意とする。シミュレーションプログラムA1
は、これらの初期条件を読み込む(ステップD1)。そ
して、シミュレーションプログラムA1は、共有メモリ
C1を確保し、そのメモリ識別子を入出力インタフェー
スプログラムB1に送信した(ステップD2)後、繰り
返し処理をスタートする。繰り返し処理において、ステ
アリング操作を指定しない間は共有メモリC1の更新は
行われないため、共有メモリC1の参照の処理がスキッ
プされる(ステップD3)。As shown in FIG. 3, for example, the state of air flow when a rectangular obstacle K2 exists in a two-dimensional parallel plate is analyzed. Here, at the beginning of the analysis, both the entrance and the exit of the analysis area K1 are released, the inflow velocity of the air from the entrance is constant at v1, and other various conditions are arbitrary. Simulation program A1
Reads these initial conditions (step D1). Then, the simulation program A1 secures the shared memory C1, transmits the memory identifier to the input / output interface program B1 (step D2), and then starts the repetitive processing. In the repetitive processing, the update of the shared memory C1 is not performed unless the steering operation is designated, so that the processing of referring to the shared memory C1 is skipped (step D3).
【0052】一方、ある時点でステアリング操作の要求
を行うと、入出力インタフェースプログラムB1が起動
し、これと同時に、入出力インタフェースプログラムB
1は、共有メモリC1のメモリ識別子F1を受け取る
(ステップE1)。そして、入出力インタフェースプロ
グラムB1は、ステアリング操作の問い合わせメッセー
ジを出力する(ステップE2)。これに応じてステアリ
ング操作を行い、空気の流入速度をv1からv2に変え
たとする(ステップE3)と、入出力インタフェースプ
ログラムB1は、空気の流入速度をv1からv2に変更
する旨の命令を共有メモリC1に書き出す(ステップE
4)。On the other hand, when a request for steering operation is made at a certain point in time, the input / output interface program B1 is activated, and at the same time, the input / output interface program B1 is activated.
1 receives the memory identifier F1 of the shared memory C1 (step E1). Then, the input / output interface program B1 outputs a steering operation inquiry message (step E2). If the steering operation is performed in response to this and the air inflow speed is changed from v1 to v2 (step E3), the input / output interface program B1 shares a command to change the air inflow speed from v1 to v2. Write to memory C1 (step E
4).
【0053】シミュレーションプログラムA1では共有
メモリC1が更新されたかどうかが判定され(ステップ
D3)、共有メモリC1が更新されている場合には、繰
り返し処理において共有メモリC1の内容の読み出しが
行われて解析の条件が変更され(ステップD4)、その
変更された条件に基づく演算処理(ステップD5)およ
び結果出力(ステップD6)が行われる。また、共有メ
モリC1が更新されていない場合には、現在の条件に基
づく演算処理(ステップD5)および結果出力(ステッ
プD6)が行われる。なお、繰り返し処理とともに進行
する解析の時刻は、この時の出力結果によって確認する
ことができる。The simulation program A1 determines whether or not the shared memory C1 has been updated (step D3). If the shared memory C1 has been updated, the contents of the shared memory C1 are read out and analyzed in a repetitive process. Is changed (step D4), and an arithmetic process (step D5) and a result output (step D6) are performed based on the changed condition. If the shared memory C1 has not been updated, the arithmetic processing (step D5) and the result output (step D6) based on the current condition are performed. The time of the analysis that proceeds with the repetitive processing can be confirmed by the output result at this time.
【0054】また、入出力インタフェースプログラムB
1は、ステアリング操作が終了したかどうかの判定を行
い(ステップE5)、正常に終了していれば、入出力イ
ンタフェースプログラムB1は終了する。The input / output interface program B
1 judges whether or not the steering operation has been completed (step E5). If the steering operation has been normally completed, the input / output interface program B1 ends.
【0055】そして、シミュレーションプログラムA1
は、さらに解析を続行した後、解析が所定の時刻に達し
たかどうかを判定し(ステップD7)、所定の時刻に達
していた場合には、共有メモリC1を解放して解析を終
了する(ステップD8)。Then, the simulation program A1
Determines whether or not the analysis has reached a predetermined time after continuing the analysis (step D7). If the analysis has reached the predetermined time, the shared memory C1 is released and the analysis ends (step D7). Step D8).
【0056】以上により、本発明の実施の形態の一実施
例の動作が終了する。With the above, the operation of the example of the embodiment of the present invention is completed.
【0057】[0057]
【発明の効果】以上説明したように、本発明には、ステ
アリング操作のための入出力によってシミュレーション
プログラムの実行が中断されないようにすることができ
るという効果がある。As described above, the present invention has an effect that execution of a simulation program can be prevented from being interrupted by input / output for steering operation.
【0058】また、本発明には、シミュレーションプロ
グラムを高速に実行することができるという効果があ
る。The present invention has another effect that a simulation program can be executed at a high speed.
【図1】図1は本発明の実施の形態の構成を示すブロッ
ク図である。FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention.
【図2】図2は本発明の実施の形態の動作を示す流れ図
である。FIG. 2 is a flowchart showing the operation of the embodiment of the present invention.
【図3】図3は本発明の一実施例を説明するための状態
図である。FIG. 3 is a state diagram for explaining one embodiment of the present invention.
【図4】図4は従来技術の構成を示すブロック図であ
る。FIG. 4 is a block diagram showing a configuration of a conventional technique.
A1、G1 シミュレーションプログラム A2、G2 初期設定部 A3 共有メモリ読み出し部 A4、G6 演算処理部 A5、G7 結果出力部 A6、G8 終了化処理部 B1 入出力インタフェースプログラム B2 初期設定部 B3、G4 ステアリング操作入力部 B4、G5 入力データチェック部 B5 共有メモリ書き込み部 C1 共有メモリ C2、H1 出力装置 C3、H2 入力装置 F1 メモリ識別子 G3 問い合わせメッセージ出力部 A1, G1 Simulation program A2, G2 Initial setting unit A3 Shared memory readout unit A4, G6 Arithmetic processing unit A5, G7 Result output unit A6, G8 Termination processing unit B1 Input / output interface program B2 Initial setting unit B3, G4 Steering operation input Unit B4, G5 input data check unit B5 shared memory writing unit C1 shared memory C2, H1 output device C3, H2 input device F1 memory identifier G3 inquiry message output unit
フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 17/00 JICSTファイル(JOIS)Continuation of the front page (58) Field surveyed (Int. Cl. 7 , DB name) G06F 17/00 JICST file (JOIS)
Claims (6)
理の結果の出力処理とからなる繰り返し処理を行うシミ
ュレーションプログラムを実行するシミュレーション手
段と、前記シミュレーション手段によるシミュレーショ
ンプログラムの実行中に、該シミュレーションプログラ
ムのパラメータを変更するステアリング操作命令を入力
する入出力インタフェース手段とからなるシミュレーシ
ョンシステムにおいて、 前記入出力インタフェース手段から入力されたステアリ
ング操作命令を記憶する共有メモリ手段を備え、 前記シミュレーション手段は、前記シミュレーションプ
ログラムの繰り返し処理ごとに前記共有メモリ手段が更
新されているかどうか判定を行い、更新されている場合
にのみ、前記共有メモリ手段から前記ステアリング操作
命令を読み込み、該命令に基づいて前記シミュレーショ
ンプログラムのパラメータを変更した後、前記繰り返し
処理を続行し、更新されていない場合には、現在のパラ
メータのままで前記繰り返し処理を続行する ことを特徴
とするシミュレーションシステム。An arithmetic processing based on a parameter and the arithmetic processing
Means for executing a simulation program for performing repetitive processing including output processing of a simulation result, and a steering operation instruction for changing parameters of the simulation program during execution of the simulation program by the simulation means. Simulation consisting of input / output interface means for inputting
In Yonshisutemu, input from the output interface unit stearyl
Shared memory means for storing a simulation operation instruction, wherein the simulation means comprises:
The shared memory means is updated every time the program is repeated.
Judge whether it is new and if it is updated
Only the steering operation from the shared memory means
Read the instruction, and execute the simulation based on the instruction.
After changing the program parameters, repeat
Continues processing, and if not updated,
A simulation system wherein the repetition processing is continued with a meter .
入力部と、 前記ステアリング操作入力部によって入力された前記ス
テアリング操作命令の妥当性をチェックする入力データ
チェック部と、 前記入力データチェック部によって妥当と判断された前
記ステアリング操作命令を前記共有メモリ手段に書き込
む共有メモリ書き込み部とを備えたことを特徴とする請
求項1に記載のシミュレーションシステム。(2) A steering operation input unit that inputs the steering operation command; an input data check unit that checks the validity of the steering operation command input by the steering operation input unit; and the input data check unit 2. The simulation system according to claim 1, further comprising: a shared memory writing unit that writes the steering operation command determined to be valid by the shared memory unit into the shared memory unit. 3.
レス情報を前記入出力インタフェース手段に受け渡す第
1の初期設定部を備え、 前記入出力インタフェース手段は、さらに、 前記第1の初期設定部より前記アドレス情報を受信し、
該アドレス情報を前記共有メモリ書き込み部に通知する
とともに、ステアリング操作を問い合わせるメッセージ
を出力する第2の初期設定部を備えたことを特徴とする
請求項2に記載のシミュレーションシステム。3. The simulation unit further includes a first initialization unit that secures the shared memory unit and transfers address information of the shared memory unit to the input / output interface unit. Further receives the address information from the first initial setting unit,
The simulation system according to claim 2, further comprising a second initial setting unit that notifies the address information to the shared memory writing unit and outputs a message inquiring about a steering operation.
理の結果の出力処理とからなる繰り返し処理を行うシミ
ュレーションプログラムを実行するシミュレーション手
段と、前記シミュレーション手段によるシミュレーショ
ンプログラムの実行中に、該シミュレーションプログラ
ムのパラメータを変更するステアリング操作命令を入力
する入出力インタフェース手段とからなるシミュレーシ
ョンシステムにおいて、 前記入出力インタフェース手段がパラメータを変更する
ためのステアリング操作命令を共有メモリ手段に記憶す
るステップと、 前記シミュレーション手段が、前記シミュレーションプ
ログラムの繰り返し処理ごとに前記共有メモリ手段が更
新されているかどうか判定を行い、更新されている場合
にのみ、前記共有メモリ手段から前記ステアリング操作
命令を読み込み、該命令に基づいて前記シミュレーショ
ンプログラムのパラメータを変更した後、前記繰り返し
処理を続行し、更新されていない場合には、現在のパラ
メータのままで前記繰り返し処理を続行するステップ と
を含むことを特徴とするシミュレーションシステムにお
けるステアリング方法。4. An arithmetic processing based on a parameter and the arithmetic processing
Means for executing a simulation program for performing repetitive processing including output processing of a simulation result, and a steering operation instruction for changing parameters of the simulation program during execution of the simulation program by the simulation means. Simulation consisting of input / output interface means for inputting
The input / output interface changes parameters in the
Steering operation command for storage in the shared memory means
And the simulation means comprises:
The shared memory means is updated every time the program is repeated.
Judge whether it is new and if it is updated
Only the steering operation from the shared memory means
Read the instruction, and execute the simulation based on the instruction.
After changing the program parameters, repeat
Continues processing, and if not updated,
Continuing the iterative process with the meter still in use.
テアリング操作命令を入力するステアリング操作入力ス
テップと、前記入出力インタフェース手段が 前記ステアリング操作
入力ステップで入力された前記ステアリング操作命令の
妥当性をチェックする入力データチェックステップと、前記入出力インタフェース手段が 前記入力データチェッ
クステップで妥当と判断された前記ステアリング操作命
令を前記共有メモリ手段に書き込む共有メモリ書き込み
ステップとを含むことを特徴とする請求項4に記載のシ
ミュレーションシステム。 5. A steering operation input step of the input and output interface means for inputting the steering operation instruction input said output interface means for checking the validity of the steering operation command inputted by the steering operation input step 5. The data processing method according to claim 4, further comprising: a data check step; and a shared memory writing step in which the input / output interface unit writes the steering operation command determined to be valid in the input data check step to the shared memory unit. Simulation system.
メモリ手段を確保し、該共有メモリ手段のアドレス情報
を前記入出力インタフェース手段に受け渡す第1の初期
設定ステップと、 前記入出力インタフェース手段が、 前記シミュレーショ
ン手段より前記アドレス情報を受信し、該アドレス情報
を前記共有メモリ書き込みステップに受け渡すととも
に、ステアリング操作を問い合わせるメッセージを出力
する第2の初期設定ステップとを含むことを特徴とする
請求項5に記載のシミュレーションシステムにおけるス
テアリング方法。 6. The simulation means according to claim 1, wherein
Securing memory means and address information of the shared memory means
First pass to pass the data to the input / output interface means
A setting step, wherein the input / output interface means receives the address information from the simulation means, passes the address information to the shared memory writing step, and outputs a message inquiring about a steering operation. Is characterized by including
A steering method in the simulation system according to claim 5 .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP25866896A JP3099752B2 (en) | 1996-09-30 | 1996-09-30 | Simulation system, steering method in simulation system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP25866896A JP3099752B2 (en) | 1996-09-30 | 1996-09-30 | Simulation system, steering method in simulation system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH10105537A JPH10105537A (en) | 1998-04-24 |
| JP3099752B2 true JP3099752B2 (en) | 2000-10-16 |
Family
ID=17323448
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP25866896A Expired - Fee Related JP3099752B2 (en) | 1996-09-30 | 1996-09-30 | Simulation system, steering method in simulation system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3099752B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4727291B2 (en) * | 2005-05-12 | 2011-07-20 | ディエスピーテクノロジ株式会社 | Block diagram type simulation model creation device, real-time simulation execution device, and library |
-
1996
- 1996-09-30 JP JP25866896A patent/JP3099752B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH10105537A (en) | 1998-04-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS62182939A (en) | Logic simulation method for information processor | |
| JPS62262173A (en) | Data formatting apparatus | |
| JP3099752B2 (en) | Simulation system, steering method in simulation system | |
| JPH0821009B2 (en) | CHANNEL CONTROLLER INITIALIZATION METHOD AND SYSTEM FOR THE INITIALIZATION | |
| JP3067161B2 (en) | Fuzzy arithmetic processing unit | |
| JPS6240538A (en) | Data processor | |
| JPS6148741B2 (en) | ||
| JP3130798B2 (en) | Bus transfer device | |
| JPH0250787A (en) | Ic card and its program rewriting system | |
| JPH04209007A (en) | User program editing system for programmable controller | |
| JPH07296124A (en) | Ic card applying device | |
| JPS59226957A (en) | Data control system | |
| JP2864537B2 (en) | Schematic program editing device | |
| JPH07295761A (en) | Mirroring magnetic disk device | |
| JPS59133613A (en) | Software verifying method of process controller | |
| JPH0158522B2 (en) | ||
| JPS60160466A (en) | Device for controlling hierarchical sequence | |
| JPH07120167B2 (en) | Processing method and processing device for sequence control | |
| JPS5854414B2 (en) | Data conversion control method in data processing equipment | |
| JPH07230376A (en) | Computer system function expansion method | |
| JPS6325372B2 (en) | ||
| JPH01251375A (en) | Magnetic disk controller | |
| JPH07244564A (en) | Disk array device | |
| JPS62282327A (en) | Information processor | |
| JPS588010B2 (en) | Program creation device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20000718 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20070818 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080818 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080818 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090818 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090818 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100818 Year of fee payment: 10 |
|
| LAPS | Cancellation because of no payment of annual fees |