Summary of the invention
Embodiments provide a kind of Weight by Draft method and system based on EXCEL, in order to solve prior art
Present in problem.
A kind of Weight by Draft method based on EXCEL, including:
Obtaining the input data of user input, described input data include the hexahedro water gauge of boats and ships, the water ballast degree of depth, combustion
The oil degree of depth and the fresh water degree of depth;
Data acquisition is carried out, it is thus achieved that gathering data, described collection data include light weight and ship by the way of link
Oceangoing ship constant;
Goods weight is calculated, it is thus achieved that goods weight data according to described input data and collection data;
According to following revision of the convention formula, described goods weight data are carried out revision of the convention process, it is thus achieved that revision of the convention data:
A=IF (AND (ROUND (ABS (B27) * 10^ (n+1)-INT (ABS (B27) * 10^n) * 10^n, n)=5, MOD
(INT (ABS (B27) * 10^n), 2)=0), and ROUNDDOWN (B27, n), ROUND (B27, n));
Wherein, a is described revision of the convention data, and B27 is the numbering of the cell depositing described goods weight data, and n is for needing to protect
The decimal digits stayed, IF, AND, ROUND, ABS, INT, MOD, ROUNDDOWN are the function in EXCEL.
Preferably, described method also includes: use the certificate format set and described revision of the convention data genaration to demonstrate,prove accordingly
Book.
Preferably, while carrying out data acquisition, if desired data are set to different forms, use conditional formats
Obtain the expression format of each data in certificate with user-defined format, and described collection data are set to corresponding form.
Preferably, the water gauge that described boats and ships are hexahedro estimated by survey crew or use readout instrument read the bow of boats and ships, midship,
The water gauge of stern both sides obtains;The ballasting water tank that the described water ballast degree of depth is entered boats and ships by survey crew uses ribbon measurement to obtain
?;The fuel oil tank that the described fuel oil degree of depth is entered boats and ships by survey crew uses ribbon to measure acquisition;The described fresh water degree of depth is by surveying
Amount personnel enter the fresh-water tank of boats and ships and use ribbon to measure acquisition.
Present invention also offers a kind of Weight by Draft system based on EXCEL, including:
Input module, for obtaining the input data of user input, described input data include the hexahedro water gauge of boats and ships,
The water ballast degree of depth, the fuel oil degree of depth and the fresh water degree of depth;
Data acquisition module, for carrying out data acquisition, it is thus achieved that gather data, described collection data by the way of link
Including light weight and ship's constant;
Computing module, for calculating goods weight according to described input data and collection data, it is thus achieved that goods weight data;
Data revision of the convention module, for carrying out revision of the convention process according to following revision of the convention formula by described goods weight data, it is thus achieved that
Revision of the convention data:
A=IF (AND (ROUND (ABS (B27) * 10^ (n+1)-INT (ABS (B27) * 10^n) * 10^n, n)=5, MOD
(INT (ABS (B27) * 10^n), 2)=0), and ROUNDDOWN (B27, n), ROUND (B27, n));
Wherein, a is described revision of the convention data, and B27 is the numbering of the cell depositing described goods weight data, and n is for needing to protect
The decimal digits stayed, IF, AND, ROUND, ABS, INT, MOD, ROUNDDOWN are the function in EXCEL.
Preferably, described system also includes: certificates constructing module, for using the certificate format of setting and the described revision of the convention
The corresponding certificate of data genaration.
Preferably, data, while carrying out data acquisition, are if desired set to different by described data acquisition module
Form, uses conditional formats and user-defined format to obtain the expression format of each data in certificate, and described collection data is arranged
For corresponding form.
A kind of Weight by Draft method and system based on EXCEL in the embodiment of the present invention, obtain user input with
And after the data automatically gathered, calculate goods weight data according to default computing formula, and use the revision of the convention formula pair of setting
Goods weight data carry out revision of the convention process, owing to employing ROUND function in revision of the convention formula, fundamentally solve computer and float
Point computational problem, makes revision of the convention result accurately reliable, shortens operating process.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
With reference to Fig. 1, the invention provides a kind of Weight by Draft method based on EXCEL, the method includes:
Step 100, the input operation of response user obtains input data;
Owing in Weight by Draft, major part data are for reusing, the most constant data, only fraction data are actual
The data of the change gathered, it is therefore desirable to user is by the data input Microsoft Excel of change.Use during Weight by Draft
To data include water gauge, the water ballast degree of depth, the fuel oil degree of depth and the fresh water degree of depth that boats and ships are hexahedro, data above is both needed to survey crew
Input to Microsoft Excel after measurement.The hexahedro water gauge of boats and ships includes left bow water gauge, right bow water gauge, left midship water gauge, right midship water
Chi, left stern water gauge and right stern water gauge, taken advantage of canoe to the bow of boats and ships, midship, stern two by survey crew when measuring the hexahedro water gauge of boats and ships
Sidelong glance is surveyed and is read water gauge reading, or is read water gauge reading by the bow of little boat-carrying readout instrument to boats and ships, midship, stern both sides;Water ballast
Depth survey by survey crew enter ballasting water tank use ribbon measure the water ballast degree of depth;The fuel oil degree of depth and the fresh water degree of depth
Measure identical with the metering system of the water ballast degree of depth, i.e. entered fuel oil tank or the fresh-water tank use ribbon of boats and ships by survey crew
Measure and obtain.
Step 110, carries out data acquisition by the way of link in Microsoft Excel automatically, it is thus achieved that gather data;
The data gathered in this step are reusable constant data, and those data are stored in advance in the list specified
In unit's lattice, only need during use to obtain, by link, the data formulated in cell, it is to avoid manually repeatedly input data.Carry out
While data acquisition, if desired data are set to different forms, it is possible to use conditional formats and user-defined format obtain
The expression format of each data in certificate, and described collection data are set to corresponding form, meet the call format of certificate, keep away
Exempt from format error.Wherein, described collection data include light weight and ship's constant.
Step 120, calculates goods weight according to computing formula set in advance and described input data and collection data,
Obtain corresponding goods weight data;
In this step, by the function of EXCEL self-defining function, needing to deposit the cell of described goods weight data
Defined in described computing formula, then by calculate obtain described goods weight data leave in the cell specified.
Wherein, the step calculating described goods weight includes the displacement after calculating salt water density correction, and according to institute
State the displacement after salt water density correction and calculate described goods weight.
Specifically, the displacement after calculating salt water density correction specifically includes:
FORE DRAFT correction value under Ship ' trimming condition:
Wherein, FcAbsorbing water trim correction value for ship bow, T is before boats and ships trim correction about stern left and right Mean Draught and bow
The difference of Mean Draught, LBPFor the distance between ship bow after perpendicular, DfThe distance being tagged between FP for bow water gauge, DaFor stern water
Chi is tagged to the distance between after perpendicular.
Aft draft correction value under Ship ' trimming condition:
Wherein, AcTrim correction value is absorbed water for ship stern.
Midship drinking water correction value under Ship ' trimming condition:
Wherein, McTrim correction value, D is absorbed water for boats and ships midshipmThe distance of ship midship it is tagged to for midship water gauge.
Calculate revised bow Mean Draught:
Fm=Fps+Fc
Wherein, FmFor ship bow Mean Draught, FpsAbsorb water for bow left and right average observed.
Calculate revised stern Mean Draught:
Am=Aps±Ac
Wherein, AmFor ship stern Mean Draught, ApsAbsorb water for stern left and right average observed.
Calculating bow, stern Mean Draught:
Mpc=Mp±Mc
Wherein, MpcFor ship bow, stern Mean Draught, MpFor ship bow Mean Draught.
Calculate revised right midship to absorb water:
Msc=Ms±Mc
Wherein, MscAbsorb water for revised right midship, MsFor the observation drinking water of right midship.
Calculating midship Mean Draught:
Mm=(Mpc+Msc)/2
Wherein, MmFor the left and right Mean Draught of midship.
Calculate arch, fall into Mean of Mean after correction:
D/M=(Fm+Am+6Mm)/8
Wherein, D/M is boats and ships arch, falls into Mean of Mean after correction.
Calculating displacement trim corrected value:
Wherein, Δ W is displacement trim corrected value, and TPC is every centimetre of drinking water ton of D/M corresponding position, XfAt D/M drinking water
The centre of floatation is away from ship midship distance, TcBow, the trim of aft draft after correcting for trim, dm/dz is upper and lower 50cm trim at D/M drinking water
The change residual quantity of moment MTC.
Displacement after calculating trim correction:
Δ3=Δ2+ΔW
Wherein, Δ3Displacement after correcting for trim, Δ2For the respective row water yield.
Displacement after calculating water density correction:
Δ4=Δ3·ρ1/ρ2
Wherein, Δ4For displacement after salt water density correction, ρ1For actual measurement density of sea water, ρ2For sea water tabulation density.
The step calculating described goods weight includes:
Calculate weight loaded, make the weight loaded calculated using the following method be described goods weight in loading process:
WL=(B-b)-(A-a)
Wherein, WLFor weight loaded, B is actual displacement after the loading using above method to calculate, i.e. sea water after loading
Displacement after density correction, b is the weight such as Ship's Elements and other goods after loading, and A is the dress using above method to calculate
Displacement after the front salt water density correction of actual displacement before goods, i.e. loading, a is the weight such as Ship's Elements and other goods before loading
Amount.
Calculate landing weight, make the landing weight calculated using the following method be described goods weight in Discharging Process:
WD=(Al-al)-(Bl-bl)
Wherein, WDFor landing weight, Al is actual displacement before the unloading using above method to calculate, i.e. sea water before unloading
Displacement after density correction, al is the weight such as Ship's Elements and other goods before unloading, and Bl is to use above method to calculate
Actual displacement after unloading, i.e. displacement after salt water density correction after unloading, bl is Ship's Elements and other goods after unloading
Etc. weight.
Described goods weight data are carried out revision of the convention process according to revision of the convention formula set in advance by step 130, it is thus achieved that corresponding
Revision of the convention data, described revision of the convention formula is:
A=IF (AND (ROUND (ABS (B27) * 10^ (n+1)-INT (ABS (B27) * 10^n) * 10^n, n)=5, MOD
(INT (ABS (B27) * 10^n), 2)=0), and ROUNDDOWN (B27, n), ROUND (B27, n));
Wherein, a is described revision of the convention data, and B27 is the numbering of the cell depositing described goods weight data, and n is for needing to protect
The decimal digits stayed, IF, AND, ROUND, ABS, INT, MOD and ROUNDDOWN are in EXCEL conventional function, at this not
Elaborate.Owing to described revision of the convention formula employing ROUND function, fundamentally solve asking of computer floating-point operation
Topic.
Step 140, uses the certificate format and the described corresponding certificate of revision of the convention data genaration set.
Based on same inventive concept, embodiments provide a kind of Weight by Draft system based on EXCEL, due to this
The principle that system solves technical problem is similar with a kind of Weight by Draft method based on EXCEL, and therefore the enforcement of this system can be joined
According to the enforcement of method, repeat no more in place of repetition.
Input module 200, obtains input data for responding the input operation of user;
Data acquisition module 210, for automatically carrying out data acquisition by the way of link in Microsoft Excel, it is thus achieved that
Gather data;
Computing module 220, for calculating according to computing formula set in advance and described input data and collection data
Goods weight, it is thus achieved that corresponding goods weight data;
Data revision of the convention module 230, for carrying out the revision of the convention according to revision of the convention formula set in advance to described goods weight data
Process, it is thus achieved that corresponding revision of the convention data;
Certificates constructing module 240, for using the certificate format of setting and the described corresponding certificate of revision of the convention data genaration.
Should be appreciated that this system realizes according to module that one of the above Weight by Draft based on EXCEL system includes is only
The logical partitioning that carries out of function, in actual application, superposition or the fractionation of above-mentioned module can be carried out.And this embodiment provides
A kind of based on EXCEL water of providing with above-described embodiment of the function that realized of a kind of based on EXCEL Weight by Draft system
Chi meter weighing method one_to_one corresponding, the more detailed handling process realized for this system, in said method embodiment one
It is described in detail, is not described in detail herein.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the reality in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware
Execute the form of example.And, the present invention can use at one or more computers wherein including computer usable program code
The upper computer program product implemented of usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.)
The form of product.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention
Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram
Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce
A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real
The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to
Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or
The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter
Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or
The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one
The step of the function specified in individual square frame or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to include excellent
Select embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention
God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof
Within, then the present invention is also intended to comprise these change and modification.