Boat Design Forums  |  Boat Design Directory  |  Boat Design Gallery  |  Boat Design Book Store  |  Thanks to Our Site Sponsors

Go Back   Boat Design Forums > Design > Stability
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-16-2011, 02:19 AM
yuyewuyuconan yuyewuyuconan is offline
Junior Member
 
Join Date: Nov 2009
Rep: 10 Posts: 35
Location: china
Question about Draft calculation

I calculate stablility by software "COMPASS"(CHINA CLASSIFFICATION SOCIETY's) usually.
I want to make a software by java which can create a excelfile contain all calculation's results(likes summary table).
Now,i have a program, the draft i cal is not the same as software .
I dont konw which formula is wrong.
Any one can help me ,thanks in advance!
following is partical code:

/*(double dis,double L,double draftAv,double Xg,double Xb,double Mtc,double Xf
* ,double zg,double zb,double bM,double wi) those are konwn
*/
public IntactStability(double dis,double L,double draftAv,double Xg,double Xb,double Mtc,double Xf
,double zg,double zb,double bM,double wi){

this.dis=dis;
this.L=L;
this.draftAv=draftAv;
this.Xg=Xg;
this.Xb=Xb;
this.trimArm=Xg-Xb;
this.trimMoment=dis*trimArm;
this.Mtc=Mtc;
this.trim=trimMoment/100/Mtc;
this.Xf=Xf;

// from
this.dfChange=(L/2-Xf)*trim/L;
this.daChange=-(L/2+Xf)*trim/L;
this.df=draftAv+dfChange;
this.da=draftAv+daChange;
this.dav=(df+da)/2;

//end
this.zg=zg;
this.zb=zb;
this.bM=bM;
this.zM=zb+bM;
this.GM0=zM-zg;
this.wi=wi;
this.GM1=wi/dis;
this.GM1=GM0-GM1;


}
Reply With Quote
  #2  
Old 11-23-2011, 02:52 AM
yuyewuyuconan yuyewuyuconan is offline
Junior Member
 
Join Date: Nov 2009
Rep: 10 Posts: 35
Location: china
00! winter is coming.
Reply With Quote
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
FREE!ship Plus resistance calculation question lumberjack_jeff Software 5 10-05-2011 04:52 PM
Tophead Floor Calculation Question Repelsteeltje Sailboats 3 07-20-2010 03:08 PM
Resistance calculation and propulsion calculation for tug boat sreejith Props 0 02-06-2010 03:43 AM
twin keel 2' draft instead of single 7' draft on 65' yhxaig Projects & Proposals 3 11-12-2006 05:25 PM
Material for a new Draft Table Question. westlawn5554X Materials 16 09-17-2006 03:17 AM


All times are GMT -5. The time now is 04:40 AM.


Powered by: vBulletin Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Web Site Design and Content Copyright ©1999 - 2012 Boat Design Net