CN106407266A - Method and device for formatting and extracting three-dimensional calculation results - Google Patents

Method and device for formatting and extracting three-dimensional calculation results Download PDF

Info

Publication number
CN106407266A
CN106407266A CN201610726543.0A CN201610726543A CN106407266A CN 106407266 A CN106407266 A CN 106407266A CN 201610726543 A CN201610726543 A CN 201610726543A CN 106407266 A CN106407266 A CN 106407266A
Authority
CN
China
Prior art keywords
described
crsf
data
numerical value
value
Prior art date
Application number
CN201610726543.0A
Other languages
Chinese (zh)
Inventor
汪纯锋
杨帆
罗亚林
崔晓光
方向前
Original Assignee
中广核工程有限公司
中国广核集团有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中广核工程有限公司, 中国广核集团有限公司 filed Critical 中广核工程有限公司
Priority to CN201610726543.0A priority Critical patent/CN106407266A/en
Publication of CN106407266A publication Critical patent/CN106407266A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion
    • G06F16/86Mapping to a database

Abstract

The invention discloses a method and a device for formatting and extracting three-dimensional calculation results. The method comprises data uploading, CRSF_TABLE generation and CRSF_TABLE display; and the device comprises a three-dimensional calculation server used for three-dimensional data calculation, a CRSF data server for receiving and uploading a CRSF data file, a data field for extracting the CRSF data file, a first operating system for generating and outputting CRSF_TABLE and a second operating system which is used for converting the attribute of the received CRSF_TABLE file and is convenient for checking. According to the method and the device, based on a Linux platform, traversing, iterative searching and input output redirection are used, then an open source software AWK and SED technology is combined, and the formative CRSF_TABLE can be generated within one minute, so that the problems of time consumption, labor wasting, omission and mistake of extracted data generated by using a manual method in the extraction process of nuclear power design three-dimensional calculation results are solved.

Description

A kind of three-dimensional computations result formats extracting method and device

Technical field

The present invention relates to field of computer data processing is and in particular to format extracting method to a kind of three-dimensional computations result And device, more particularly, to a kind of nuclear power design three-dimensional computations result formatting extracting method and device.

Background technology

In three dimensional design, especially during nuclear power three dimensional design, tens thousand of parts of CRSF (i.e. three-dimensional computations result will be produced Data file), and the data in CRSF, presenting the features such as destructuring, disordering, readable difference more.Therefore, designer Member needs to move from every portion CRSF expert and extracts to designing valuable data field, then data field is replicated one by one viscous It is attached in Microsoft Excel document, carries out after-treatment, finally give a CRSF_TABLE (i.e. three-dimensional computations result Technical parameter table), concrete operation step is:1) from CRSF, manually find the data field of needs;2) replicate data field, glues It is attached to the corresponding data item of Microsoft Excel file;3) continuous repeat step 1), 2), ultimately form CRSF_TABLE;4) Secondary check, correction are carried out to CRSF_TABLE.

Generate CRSF_TABLE by then passing through hand labor, therefore said method would generally spend designer larger Energy and time, leads to design work inefficiency, and because above-mentioned CRSF_TABLE is to be generated by artificial field of extracting, It is limited to the restriction of human body energy, the risk that data is omitted or error in data extracts can be produced it is impossible to guarantee the accuracy of data, Could use after also needing to repeatedly be checked.

Therefore, it is necessary to provide a kind of three dimensional design to calculate, especially during nuclear power design three-dimensional computations, can be from magnanimity Quick in CRSF, efficiently, accurately extract significant data, and automatically generate the technical scheme of CRSF_TABLE, to be solved with this existing Have in technology by hand labor produce CRSF_TABLE during time-consuming, high cost, and omit, error extraction data Problem.

Content of the invention

For problem in above-mentioned prior art, the invention provides a kind of three dimensional design calculates, especially nuclear power design three In dimension calculating process, can be quick from magnanimity CRSF, efficiently, accurately extract significant data, and automatically generate CRSF_TABLE's The method and device of skill, to improve nuclear power three dimensional design efficiency with this.

The technical scheme that the present invention proposes with regard to above-mentioned technical problem is as follows:

On the one hand, provide a kind of three-dimensional computations result to format extracting method, comprise the steps:

S1. data uploads:Receive and upload all CRSF data files in three-dimensional computations result;

S2.CRSF_TABLE generates:Described CRSF data file is obtained by the first operating system server, extracts described The data field of CRSF data file, and by described data field format, generate CRSF_TABLE and export;

S3.CRSF_TABLE shows:Described CRSF_TABLE is received by the second operating system server, and will be described The first operating system file attribute of CRSF_TABLE is transformed into the second operating system file attribute, in the described second operation Described CRSF_TABLE is checked under system server.

Preferably, described first operating system includes linux system.

Preferably, described second operating system includes Windows system.

Preferably, the file attribute of described second operating system is Excel file.

Preferably, following steps are specifically included in step S2:

S21, data traversal:Described CRSF data file is uploaded to described linux system, travels through CRSF_DIR, side by side Go out catalogue and file details;

S22, field extract:Each described CRSF data file by filename iterative search, therefrom finding needs extraction Data item;

S23, repeatedly output reset item:The described data item needing to extract is carried out many output of AWK, SED reset at item Reason, obtains the corresponding parameter of the data item that described needs extract;

S24, CRSF_TABLE generate:Need the data item extracting described in Formatting Output, and form CRSF_TABLE.

Preferably, in step S21, described list catalogue and the step of file details includes:Using in AWK Print parameter each CRSF_NAME in described CRSF_DIR is filtered, and eventually forms and includes each CRSF_ The CRSF_NAME_LIST of NAME_LIST.

Preferably, in step S22, the implementation method that field extracts includes:

Take out a CRSF_NAME from described CRSF_NAME_LIST, do traversing operation, therefrom extract DATA1 data Fragment, DATA2 data slot, DATA3 data slot and DATA4 data slot, take out it successively using same method after finishing He is CRSF_NAME, carries out traversing operation successively, and extracts DATA1 data slot, DATA2 data slot, DATA3 data successively Fragment and DATA4 data slot, until all CRSF_NAME all do a traversing operation in CRSF_NAME_LIST, and respectively Extract the DATA1 data slot in each CRSF_NAME, DATA2 data slot, DATA3 data slot and DATA4 data slice Section.

Preferably, using TAIL instrument, each the CRSF_NAME file in described CRSF_DIR is carried out with value, take out every The data of last four row in individual CRSF_NAME file.

Preferably, in step S23, the implementation method that described multiple output resets item process includes:

The extraction of final DATA1 value:Find from the DATA1 data slot that described step S22 obtains symbol "=", be used in combination AWK method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described secondary series Numerical value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described secondary series First numerical value in the first row in numerical value, finally using first numerical value described in AWK method Formatting Output, described first Individual numerical value is the value of final DATA1;

The extraction of final DATA2 value:Find from the DATA2 data slot that described step S22 obtains symbol "=", be used in combination AWK method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described secondary series Numerical value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described secondary series First numerical value in the second row in numerical value, finally using first numerical value described in AWK method Formatting Output, described first Individual numerical value is the value of final DATA2;

The extraction of final DATA3 value:Find from the DATA3 data slot that described step S22 obtains symbol "=", be used in combination AWK method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described secondary series Numerical value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described secondary series First numerical value in the third line in numerical value, finally using first numerical value described in AWK method Formatting Output, described first Individual numerical value is the value of final DATA3;

The extraction of final DATA4 value:Find from the DATA4 data slot that described step S22 obtains symbol "=", be used in combination AWK method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described secondary series Numerical value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described secondary series First numerical value in fourth line in numerical value, finally using first numerical value described in AWK method Formatting Output, described first Individual numerical value is the value of final DATA4.

Preferably, in step S24, the described CRSF_TABLE being formed is named as CRSF_TABLE.CSV, and uses ECHO method formats output, and the form of output is " CRSF_NAME, DATA 1, DATA 2, DATA 3, DATA 4 ".

Preferably, described three-dimensional computations result designs three-dimensional computations result for nuclear power.

On the other hand, a kind of three-dimensional computations result is provided to format extraction element, including three-dimensional computations server, for three Data in dimension design process calculates;

CRSF data server, connects described calculation server, calculates knot for receiving and uploading described calculation server All CRSF data files in fruit;

First operating system, connects described CRSF data server, for obtaining described CRSF data file, and extracts institute State the data field of CRSF data file, and by described data field format, generate CRSF_TABLE and export;

Second operating system, connects described first operating system, receives described CRSF_TABLE for part, and will be described The first operating system file attribute of CRSF_TABLE is transformed into the second operating system file attribute, in the described second operation Described CRSF_TABLE is checked in system.

Preferably, described first operating system is included with lower module:

Data traversal module, for described CRSF data file is uploaded to linux system, travels through CRSF_DIR, side by side Go out catalogue and file details;

Field abstraction module, for each described CRSF data file by filename iterative search, therefrom finds needs and takes out The data item taking;

Repeatedly output resets a module, resets for the described data item needing to extract is carried out many output of AWK, SED Item is processed, and obtains the corresponding parameter of the data item that described needs extract;

CRSF_TABLE generation module, for needing the data item extracting described in Formatting Output, and forms CRSF_ TABLE.

Preferably, described second operating system includes Windows system.

Preferably, the file attribute of described second operating system is Excel file.

Preferably, described list catalogue and the step of file details includes:It is right to be come using the print parameter in AWK Each CRSF_NAME in described CRSF_DIR is filtered, and eventually forms the CRSF_ including each CRSF_NAME_LIST NAME_LIST.

Preferably, the implementation method that field extracts includes:

Take out a CRSF_NAME from described CRSF_NAME_LIST, do traversing operation, therefrom extract DATA1 data Fragment, DATA2 data slot, DATA3 data slot and DATA4 data slot, take out it successively using same method after finishing He is CRSF_NAME, carries out traversing operation successively, and extracts DATA1 data slot, DATA2 data slot, DATA3 data successively Fragment and DATA4 data slot, until all CRSF_NAME all do a traversing operation in CRSF_NAME_LIST, and respectively Extract the DATA1 data slot in each CRSF_NAME, DATA2 data slot, DATA3 data slot and DATA4 data slice Section.

Preferably, using TAIL instrument, each the CRSF_NAME file in described CRSF_DIR is carried out with value, take out every The data of last four row in individual CRSF_NAME file.

Preferably, described multiple output reset item process implementation method include:

The extraction of final DATA1 value:Find from the DATA1 data slot that described step S22 obtains symbol "=", be used in combination AWK method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described secondary series Numerical value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described secondary series First numerical value in the first row in numerical value, finally using first numerical value described in AWK method Formatting Output, described first Individual numerical value is the value of final DATA1;

The extraction of final DATA2 value:Find from the DATA2 data slot that described step S22 obtains symbol "=", be used in combination AWK method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described secondary series Numerical value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described secondary series First numerical value in the second row in numerical value, finally using first numerical value described in AWK method Formatting Output, described first Individual numerical value is the value of final DATA2;

The extraction of final DATA3 value:Find from the DATA3 data slot that described step S22 obtains symbol "=", be used in combination AWK method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described secondary series Numerical value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described secondary series First numerical value in the third line in numerical value, finally using first numerical value described in AWK method Formatting Output, described first Individual numerical value is the value of final DATA3;

The extraction of final DATA4 value:Find from the DATA4 data slot that described step S22 obtains symbol "=", be used in combination AWK method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described secondary series Numerical value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described secondary series First numerical value in fourth line in numerical value, finally using first numerical value described in AWK method Formatting Output, described first Individual numerical value is the value of final DATA4.

Preferably, in step S24, the described CRSF_TABLE being formed is named as CRSF_TABLE.CSV, and uses ECHO method formats output, and the form of output is " CRSF_NAME, DATA 1, DATA 2, DATA 3, DATA 4 ".

Preferably, described three-dimensional computations result designs three-dimensional computations result for nuclear power.

The technique effect that technical solution of the present invention is brought:

1) CRSF_DIR can quickly be traveled through, to the data item extracting designer's needs in CRSF, and in 1 minute Automatically generate CRSF_TABLE, substantially increase the operating efficiency of designer.

2) CRSF_TABLE.CSV generating can cross-platform use, have the advantages that directly perceived, read over, understandable visualization.

3) process generating CRSF_TABLE is manually only involved in once, produce when substantially reducing artificial extraction data omit or The risk that error in data extracts.

Brief description

For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below Accompanying drawing be briefly described it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.

Fig. 1 is the flow chart of steps that the three-dimensional computations result that the embodiment of the present invention one provides formats extracting method;

Fig. 2 is the structural representation that the three-dimensional computations result that the embodiment of the present invention two provides formats extraction element.

Specific embodiment

The present invention is directed to existing three dimensional design, especially during nuclear power three dimensional design, is carried by the way of hand labor Fetch data, and generate the problems such as manpower consumption during CRSF_TABLE is big, efficiency is low and error rate is high, there is provided one kind can be from sea Quick in amount CRSF, efficiently, accurately extract significant data, and automatically generate CRSF_TABLE method and device, come with this Improve nuclear power three dimensional design efficiency.Its core concept is:Based on Linux platform, using traversal, iterative search, input and output weight Orientation, in conjunction with open source software AWK and SED technology, can solve artificial to generate the CRSF_TABLE of formatting in 1 minute Method take, arduously, and and data pick-up error problem.

Embodiment one:

Fig. 1 shows that three-dimensional computations result formats the flow chart of steps of extracting method, and it is three-dimensional that it can be used for nuclear power design The extraction of result of calculation, it includes:

S1. data uploads:Receive and upload nuclear power and design all CRSF data files in three-dimensional computations result;

S2.CRSF_TABLE generates:Described CRSF data file is obtained by the first operating system server, extracts described The data field of CRSF data file, and by described data field format, generate CRSF_TABLE and export;It specifically includes Following steps:

S21. data traversal:CRSF is uploaded under the first operating system, travels through CRSF_DIR, list catalogue and file is detailed Thin information, it comprises 9 fields, respectively:File attribute field has all with, file hard link number, file owner, file The group at place, file size, file creation time, filename.It is filtrated to get using the print parameter in AWK and comprise each The list CRSF_NAME_LIST of CRSF_NAME.Implementation method:ls-lCRSF_DIR|AWK‘{print$9}’;Described first behaviour Include linux system as system.

S22. field extracts:Each described CRSF data file by filename iterative search, therefrom finding needs extraction Data item;Concrete methods of realizing is:

forCRSF_NAMEin CRSF_NAME_LIST

do

DATA1=$ (GET_DATA_OPERATION)

DATA2=$ (GET_DATA_OPERATION)

DATA3=$ (GET_DATA_OPERATION)

DATA4=$ (GET_DATA_OPERATION)

done

Due to needing the data item extracting in last four row of each CRSF, therefore can be using TAIL instrument to described Each CRSF_NAME file in CRSF_DIR carries out value, takes out the data of last four row in each CRSF_NAME file, I.e. GET_DATA_OPERATION concrete grammar is preferably tail-4CRSF_DIR/CRSF_NAME.

S23, repeatedly output reset item:The described data item needing to extract is carried out many output of AWK, SED reset at item Reason, obtains the corresponding parameter of the data item that described needs extract;Implementation method is:

DATA1=$ (GET_DATA_OPERATION | awk'BEGIN { FS="=" } { print $ 2 } ' | sed's/^ s*//g'|sed-n"1,1p"|awk'{print$1}')

DATA 2=$ (GET_DATA_OPERATION | awk'BEGIN { FS="=" } { print $ 2 } ' | sed's/^ s*//g'|sed-n"2,1p"|awk'{print$1}')

DATA 3=$ (GET_DATA_OPERATION | awk'BEGIN { FS="=" } { print $ 2 } ' | sed's/^ s*//g'|sed-n"3,1p"|awk'{print$1}')

DATA 4=$ (GET_DATA_OPERATION | awk'BEGIN { FS="=" } { print $ 2 } ' | sed's/^ s*//g'|sed-n"4,1p"|awk'{print$1}')

S24.CRSF_TABLE generates:The data item that Formatting Output extracts forms CRSF_TABLE, and is named as CRSF_ TABLE.CSV, implementation method is:Echo " CRSF_NAME, DATA1, DATA2, DATA3, DATA4 ".

S3.CRSF_TABLE shows:Described CRSF_TABLE is received by the second operating system server, and will be described The file attribute of first operating system of CRSF_TABLE is transformed into the file attribute of the second operating system, for described second Described CRSF_TABLE is checked under operating system server.Described windows system is included by the second operating system;Described second The file attribute of operating system is Excel file.The CRSF_TABLE.CSV file download that linux system can be generated by the program To windows platform, and opened using MicrosoftExcel, be easy in windows platform, CRSF_TABLE be carried out intuitively Displaying and check.

It should be noted that the nuclear power design three-dimensional computations result in the present embodiment also can be to be processed by other similar need Three-dimensional computations result substitutes.

Fig. 2 shows that three-dimensional computations result formats the structural representation of extraction element, and it is three-dimensional that it can be used for nuclear power design The extraction of result of calculation, including:

Three-dimensional computations server, calculates for the data during three dimensional design;

CRSF data server, connects described calculation server, calculates knot for receiving and uploading described calculation server All CRSF data files in fruit;

First operating system, connects described CRSF data server, for obtaining described CRSF data file, and extracts institute State the data field of CRSF data file, and by described data field format, generate CRSF_TABLE and export;

Second operating system, connects described first operating system, receives described CRSF_TABLE for part, and will be described The first operating system file attribute of CRSF_TABLE is transformed into the second operating system file attribute, in the described second operation Described CRSF_TABLE is checked in system.

Likewise, described second operating system includes windows system;The file attribute of described second operating system is preferred For Excel file.

Further, described first operating system is included with lower module:

Data traversal module, for described CRSF data file is uploaded to linux system, travels through CRSF_DIR, side by side Go out catalogue and file details;

Field abstraction module, for each described CRSF data file by filename iterative search, therefrom finds needs and takes out The data item taking;

Repeatedly output resets a module, resets for the described data item needing to extract is carried out many output of AWK, SED Item is processed, and obtains the corresponding parameter of the data item that described needs extract;

And CRSF_TABLE generation module, for needing the data item extracting described in Formatting Output, and form CRSF_ TABLE.

Preferably, also the described CRSF_TABLE being formed can be named as CRSF_TABLE.CSV.

Wherein, the described step listing catalogue and file details, field extract implementation method, GET_DATA_ The implementation method of OPERATION, repeatedly output reset the implementation method of item process and order the described CRSF_TABLE being formed The implementation method of entitled CRSF_TABLE.CSV is all identical with embodiment one.

Likewise, it should be noted that the nuclear power design three-dimensional computations result in the present embodiment also can be similar to by other and need Three-dimensional computations result to be processed substitutes.

In sum, the present invention is based on Linux platform, using traversal, iterative search, I/O redirection, in conjunction with Open source software AWK and SED technology, can be to generate the CRSF_TABLE of formatting, and the CRSF_TABLE that can will generate in 1 minute Export to windows platform, opened using the Excel in Microsoft Office, be easy to check and show, solve existing In three-dimensional computations result, especially nuclear power design three-dimensional computations result extraction process, using time-consuming produced by manual method, take Power, efficiency low and omit, the problem of error extraction data.

One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can pass through hardware To complete it is also possible to the hardware being instructed correlation by program is completed, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..

The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvement made etc., should be included within the scope of the present invention.

Claims (21)

1. a kind of three-dimensional computations result formats extracting method it is characterised in that comprising the steps:
S1. data uploads:Receive and upload all CRSF data files in three-dimensional computations result;
S2.CRSF_TABLE generates:Described CRSF data file is obtained by the first operating system server, extracts described CRSF number According to the data field of file, and by described data field format, generate CRSF_TABLE and export;
S3.CRSF_TABLE shows:Described CRSF_TABLE is received by the second operating system server, and by described CRSF_ The first operating system file attribute of TABLE is transformed into the second operating system file attribute, in described second operating system Under check described CRSF_TABLE.
2. the method for claim 1 is it is characterised in that described first operating system includes linux system.
3. the method for claim 1 is it is characterised in that described second operating system includes Windows system.
4. method as claimed in claim 3 is it is characterised in that the file attribute of described second operating system is Excel file.
5. the method for claim 1 is it is characterised in that specifically include following steps in step S2:
S21, data traversal:Described CRSF data file is uploaded, travels through CRSF_DIR, and list catalogue and file is believed in detail Breath;
S22, field extract:Each described CRSF data file by filename iterative search, therefrom finds the data needing to extract ?;
S23, repeatedly output reset item:The described data item needing to extract is carried out many output of AWK, SED and resets item process, obtain Corresponding parameter to the described data item needing and extracting;
S24, CRSF_TABLE generate:Need the data item extracting described in Formatting Output, and form CRSF_TABLE.
6. method as claimed in claim 5 is it is characterised in that in step S21, described catalogue and the file details listed Step includes:Using the print parameter in AWK, each CRSF_NAME in described CRSF_DIR is filtered, last shape Become to include the CRSF_NAME_LIST of each CRSF_NAME_LIST.
7. method as claimed in claim 6 is it is characterised in that in step S22, the implementation method that field extracts includes:From institute State one CRSF_NAME of taking-up in CRSF_NAME_LIST, do traversing operation, therefrom extract DATA1 data slot, DATA2 number According to fragment, DATA3 data slot and DATA4 data slot, after finishing, other CRSF_NAME are taken out successively using same method, Carry out traversing operation successively, and extract DATA1 data slot, DATA2 data slot, DATA3 data slot and DATA4 number successively According to fragment, until all CRSF_NAME all do a traversing operation in CRSF_NAME_LIST, and extract each respectively DATA1 data slot in CRSF_NAME, DATA2 data slot, DATA3 data slot and DATA4 data slot.
8. method as claimed in claim 7 is it is characterised in that use TAIL instrument to each in described CRSF_DIR CRSF_NAME file carries out value, takes out the data of last four row in each CRSF_NAME file.
9. method as claimed in claim 7 is it is characterised in that in step S23, described multiple output resets the realization of item process Method includes:
The extraction of final DATA1 value:Find from the DATA1 data slot that described step S22 obtains symbol "=", and use AWK Method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described second columns Value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described second columns First numerical value in the first row in value, finally using first numerical value described in AWK method Formatting Output, described first Numerical value is the value of final DATA1;
The extraction of final DATA2 value:Find from the DATA2 data slot that described step S22 obtains symbol "=", and use AWK Method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described second columns Value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described second columns First numerical value in the second row in value, finally using first numerical value described in AWK method Formatting Output, described first Numerical value is the value of final DATA2;
The extraction of final DATA3 value:Find from the DATA3 data slot that described step S22 obtains symbol "=", and use AWK Method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described second columns Value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described second columns First numerical value in the third line in value, finally using first numerical value described in AWK method Formatting Output, described first Numerical value is the value of final DATA3;
The extraction of final DATA4 value:Find from the DATA4 data slot that described step S22 obtains symbol "=", and use AWK Method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described second columns Value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described second columns First numerical value in fourth line in value, finally using first numerical value described in AWK method Formatting Output, described first Numerical value is the value of final DATA4.
10. method as claimed in claim 5 is it is characterised in that in step S24, the described CRSF_TABLE being formed is named For CRSF_TABLE.CSV, and format output using ECHO method, the form of output be " CRSF_NAME, DATA 1, DATA 2, DATA 3, DATA 4 ".
11. methods as described in any one of claim 1-10 are it is characterised in that described three-dimensional computations result designs three for nuclear power Dimension result of calculation.
A kind of 12. three-dimensional computations results are formatted extraction element, including three-dimensional computations server, during three dimensional design Data calculates it is characterised in that also including:
CRSF data server, connects described calculation server, for receiving and uploading in described calculation server result of calculation All CRSF data files;
First operating system, connects described CRSF data server, for obtaining described CRSF data file, and extracts described The data field of CRSF data file, and by described data field format, generate CRSF_TABLE and export;
Second operating system, connects described first operating system, receives described CRSF_TABLE for part, and by described CRSF_ The first operating system file attribute of TABLE is transformed into the second operating system file attribute, in described second operating system In check described CRSF_TABLE.
13. devices as claimed in claim 12 are it is characterised in that described first operating system is included with lower module:
Data traversal module, for described CRSF data file is uploaded to linux system, travels through CRSF_DIR, and lists mesh Record and file details;
Field abstraction module, for each described CRSF data file by filename iterative search, therefrom finding needs extraction Data item;
Repeatedly output resets a module, resets at item for the described data item needing to extract is carried out many output of AWK, SED Reason, obtains the corresponding parameter of the data item that described needs extract;
CRSF_TABLE generation module, for needing the data item extracting described in Formatting Output, and forms CRSF_TABLE.
14. devices as claimed in claim 12 are it is characterised in that described second operating system includes Windows system.
15. devices as claimed in claim 14 are it is characterised in that the file attribute of described second operating system is Excel literary composition Part.
16. devices as claimed in claim 13 are it is characterised in that the described step bag listing catalogue and file details Include:Using the print parameter in AWK to filter to each CRSF_NAME in described CRSF_DIR, eventually form and comprise There is the CRSF_NAME_LIST of each CRSF_NAME_LIST.
17. devices as claimed in claim 16 are it is characterised in that the implementation method that field extracts includes:
Take out a CRSF_NAME from described CRSF_NAME_LIST, do traversing operation, therefrom extract DATA1 data slot, DATA2 data slot, DATA3 data slot and DATA4 data slot, take out other successively using same method after finishing CRSF_NAME, carries out traversing operation successively, and extracts DATA1 data slot, DATA2 data slot, DATA3 data slice successively Section and DATA4 data slot, until all CRSF_NAME all do a traversing operation in CRSF_NAME_LIST, and take out respectively Take out the DATA1 data slot in each CRSF_NAME, DATA2 data slot, DATA3 data slot and DATA4 data slice Section.
18. devices as claimed in claim 17 are it is characterised in that use TAIL instrument to each in described CRSF_DIR CRSF_NAME file carries out value, takes out the data of last four row in each CRSF_NAME file.
19. devices as claimed in claim 17 are it is characterised in that described multiple output resets the implementation method bag of item process Include:
The extraction of final DATA1 value:Find from the DATA1 data slot that described step S22 obtains symbol "=", and use AWK Method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described second columns Value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described second columns First numerical value in the first row in value, finally using first numerical value described in AWK method Formatting Output, described first Numerical value is the value of final DATA1;
The extraction of final DATA2 value:Find from the DATA2 data slot that described step S22 obtains symbol "=", and use AWK Method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described second columns Value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described second columns First numerical value in the second row in value, finally using first numerical value described in AWK method Formatting Output, described first Numerical value is the value of final DATA2;
The extraction of final DATA3 value:Find from the DATA3 data slot that described step S22 obtains symbol "=", and use AWK Method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described second columns Value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described second columns First numerical value in the third line in value, finally using first numerical value described in AWK method Formatting Output, described first Numerical value is the value of final DATA3;
The extraction of final DATA4 value:Find from the DATA4 data slot that described step S22 obtains symbol "=", and use AWK Method list symbol "=" data be expert at, and with symbol "=" export secondary series numerical value for boundary;Again with described second columns Value passes to SED as |input paramete, and deletes all spaces before described secondary series numerical value, and takes out described second columns First numerical value in fourth line in value, finally using first numerical value described in AWK method Formatting Output, described first Numerical value is the value of final DATA4.
20. devices as claimed in claim 13 are it is characterised in that be named as CRSF_ by the described CRSF_TABLE being formed TABLE.CSV, and format output using ECHO method, the form of output be " CRSF_NAME, DATA 1, DATA 2, DATA 3, DATA 4 ".
21. devices as described in any one of claim 12-20 are it is characterised in that described three-dimensional computations result designs for nuclear power Three-dimensional computations result.
CN201610726543.0A 2016-08-25 2016-08-25 Method and device for formatting and extracting three-dimensional calculation results CN106407266A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610726543.0A CN106407266A (en) 2016-08-25 2016-08-25 Method and device for formatting and extracting three-dimensional calculation results

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610726543.0A CN106407266A (en) 2016-08-25 2016-08-25 Method and device for formatting and extracting three-dimensional calculation results

Publications (1)

Publication Number Publication Date
CN106407266A true CN106407266A (en) 2017-02-15

Family

ID=58004787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610726543.0A CN106407266A (en) 2016-08-25 2016-08-25 Method and device for formatting and extracting three-dimensional calculation results

Country Status (1)

Country Link
CN (1) CN106407266A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793865A (en) * 2000-10-11 2014-05-14 健康三重奏有限责任公司 System for communication of health care data
WO2014155761A1 (en) * 2013-03-29 2014-10-02 株式会社日立システムズ Customer-specific data cleansing processing system and customer-specific data cleansing processing method
CN104360839A (en) * 2014-10-20 2015-02-18 浪潮电子信息产业股份有限公司 Method for automatically migrating LINUX system to WINDOWS system
CN104408150A (en) * 2014-12-03 2015-03-11 天津南大通用数据技术股份有限公司 Data import/ export method and device adapted to a plurality of data formats of databases
CN105760515A (en) * 2016-02-24 2016-07-13 国家电网公司 Fusion method for same object data of multiple data sources

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793865A (en) * 2000-10-11 2014-05-14 健康三重奏有限责任公司 System for communication of health care data
WO2014155761A1 (en) * 2013-03-29 2014-10-02 株式会社日立システムズ Customer-specific data cleansing processing system and customer-specific data cleansing processing method
CN104360839A (en) * 2014-10-20 2015-02-18 浪潮电子信息产业股份有限公司 Method for automatically migrating LINUX system to WINDOWS system
CN104408150A (en) * 2014-12-03 2015-03-11 天津南大通用数据技术股份有限公司 Data import/ export method and device adapted to a plurality of data formats of databases
CN105760515A (en) * 2016-02-24 2016-07-13 国家电网公司 Fusion method for same object data of multiple data sources

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
林建昌: "电力行业分布式ETL数据集成系统研究与实现", 《中国优秀硕士学位论文全文数据库·信息科技辑》 *

Similar Documents

Publication Publication Date Title
Estefan Survey of model-based systems engineering (MBSE) methodologies
Tierny et al. Loop surgery for volumetric meshes: Reeb graphs reduced to contour trees
Szekely et al. Connecting the smithsonian american art museum to the linked data cloud
Chalons et al. Godunov-type schemes for hyperbolic systems with parameter-dependent source: the case of Euler system with friction
Halpin Fact-oriented modeling: Past, present and future
Oriti et al. Emergent Friedmann dynamics with a quantum bounce from quantum gravity condensates
Fomel et al. Reproducible computational experiments using SCons
US20110054875A1 (en) Design Specifications-Driven Platform for Analog, Mixed-signal, and Radio Frequency Verification
CN101908056A (en) Apparatus and method for identifying and abstracting a visualization point from an arbitrary two-dimensional dataset
CN102792298B (en) Metadata sources are matched using the rule of characterization matches
Cox et al. Deduction plans: a basis for intelligent backtracking
Velytsky Entanglement entropy in d+ 1 S U (N) gauge theory
CN103838672B (en) The automated testing method of a kind of all-purpose financial statements and device
van Dongen et al. EMiT: A process mining tool
US20110270882A1 (en) Resource description framework network construction device and method using an ontology schema having class dictionary and mining rule
CN104503958B (en) The generation method and device of documentation summary
US9009173B2 (en) Using views of subsets of nodes of a schema to generate data transformation jobs to transform input files in first data formats to output files in second data formats
Lee et al. Metrics for quantifying the similarities and differences between IFC files
Ilchmann et al. Differential-algebraic equations forum
Müller et al. A high‐order local time stepping finite volume solver for one‐dimensional blood flow simulations: application to the ADAN model
Kuperstein et al. Spacetime emergence via holographic RG flow from incompressible Navier-Stokes at the horizon
Freire et al. Reproducibility using vistrails
Aalberg et al. A Tool for Converting from MARC to FRBR
Dawar The nature and power of fixed-point logic with counting
Codsi et al. General-purpose software for intertemporal economic models

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination