IcanData
Class IcanDataSet

java.lang.Object
  extended by IcanData.IcanDataSet

public class IcanDataSet
extends java.lang.Object

Encapsulate the behavior of one entire set of ICAN/JAVA data. Ply data, material system data, boolean data, output control data, load data, reaction data, and associated data are included.

Since:
1.0;
Version:
1.1.17;
Updated by Louis Handler on Feb 4, 2011, 11:43 EST (1.1.17).
Updated by Louis Handler on Jun 30, 2006, 08:36 EDT (1.1.8).
Updated by Louis Handler on Jun 28, 2005, 09:12 EDT (1.1.5).
Updated by Louis Handler on Apr 25, 2005, 08:42 EDT (1.1.0).
Updated by Louis Handler on Jan 30, 2004, 09:44 EST.
Updated by Louis Handler on Sep 17, 2003, 08:17 EDT.
Updated by Louis Handler on Sep 8, 2003, 08:11 EDT.
Updated by Louis Handler on Oct 22, 2002, 09:12 EDT.
Updated by Louis Handler on Oct 22, 2002, 08:17 EDT.
Updated by Louis Handler on Oct 21, 2002, 16:11 EDT.
Updated by Louis Handler on Oct 15, 2002, 11:10 EDT.
Updated by Louis Handler on Jun 27, 2002, 14:33 EDT.
Updated by Louis Handler on Nov 21, 2000, 14:51 EST.
Updated by Louis Handler on Aug 23, 2000, 15:36 EDT.
Updated by Louis Handler on Mar 22, 2000, 11:57 EST.
Updated by Louis Handler on Mar 13, 2000, 13:50 EST.
Updated by Louis Handler on Feb 25, 2000, 08:13 EST.
Updated by Louis Handler on Jan 21, 2000, 09:02 EST.
Updated by Louis Handler on Dec 3, 1999, 08:20 EST.
Updated by Louis Handler on Mar 23, 1999, 12:40 EST.
Updated by Louis Handler on Dec 3, 1998, 12:01 EST.
Updated by Louis Handler on Nov 20, 1998, 11:59 EST.
Updated by Louis Handler on Nov 3, 1998, 13:45 EST.
Updated by Louis Handler on Oct 30, 1998, 14:49 EST.
Updated by Louis Handler on Sep 3, 1998, 10:54 EDT.
Updated by Louis Handler on Aug 7, 1998, 09:45 EDT.
Updated by Louis Handler on Jul 6, 1998, 07:49 EDT.
Updated by Louis Handler on Jul 2, 1998, 13:26 EDT.
Updated by Matthew Der on Jun 24, 1998.
Updated by Louis Handler on Jun 18, 1998.
Author:
Louis Handler

Field Summary
 java.util.Vector appliedLoading
          ICAN/JAVA mechanical static applied loading data for current case.
static int BETACC
          Experimental correlation factor (betaCC = K'12CC) for combined stress value criteria (Modified Distortion Energy).
static int BETACT
          Experimental correlation factor (betaCT = K'12CT) for combined stress value criteria (Modified Distortion Energy).
static int BETADEL
          Experimental correlation factor (betaDel) for onset of delamination criteria.
static int BETATC
          Experimental correlation factor (betaTC = K'12TC) for combined stress value criteria (Modified Distortion Energy).
static int BETATT
          Experimental correlation factor (betaTT = K'12TT) for combined stress value criteria (Modified Distortion Energy).
static int BIDE
          Subscript of boolean BIDE.
private static java.lang.String[] BooleanDescriptions
          Array containing descriptions of booleans.
 boolean[] booleans
          ICAN/JAVA data booleans for current case.
 CycleOrFatigueLoadItem[] cmsLoad
          ICAN/JAVA mechanical cyclic data for current case.
static int CMXX
          Subscript of mechanical cyclic load CMXX.
static int CMXY
          Subscript of mechanical cyclic load CMXY.
static int CMYY
          Subscript of mechanical cyclic load CMYY.
static int CNXX
          Subscript of mechanical cyclic load CNXX.
static int CNXY
          Subscript of mechanical cyclic load CNXY.
static int CNYY
          Subscript of mechanical cyclic load CNYY.
static int COMSAT
          Subscript of boolean COMSAT.
 double[] constantValues
          Array of constants used in computation: LO, BETATT, BETATC, BETACT, BETACC, BETADEL.
static int CSANB
          Subscript of boolean CSANB.
 DampingDataItem dampingData
          ICAN/JAVA damping data for current case.
 LoadItem decayLoadItem
          ICAN/JAVA decay (Corrosion Deterioration) data for current case.
static int DEFECT
          Subscript of boolean DEFECT.
 DefectItems defectList
          ICAN/JAVA ply/slice/subslice defect data for current case.
 ElectricalLoadItem[] electricalCyclicLoad
          ICAN/JAVA electrical cyclic data for current case.
 ElectricalLoadItem electricalStaticLoad
          ICAN/JAVA electrical static data for current case.
 double frequency
          ICAN/JAVA Frequency Data for current case.
private static double HALF
          The number one half.
 HygralLoadItem[] hygralCyclicLoad
          ICAN/JAVA hygral cyclic data for current case.
 HygralLoadItem hygralStaticLoad
          ICAN/JAVA hygral static data for current case.
static java.lang.String ICANDATADIR
          String containing the server data directory.
 ImpactDataItem impactData
          ICAN/JAVA impact data for current case.
private static java.lang.String lastFileName
          Last file name used to read ICAN/JAVA data.
static int LO
          ICAN/JAVA Constant lo is written as lower case script L, subscript o.
static double loDEFAULT
          The default value Used in computation of Hj.
 java.util.Vector materialSystem
          ICAN/JAVA material system data for current case.
static java.lang.String[] MSLOADS
          Array containing descriptions of mechanical cyclic loads.
static int nBOOLEANS
          Number of booleans.
static int nConstants
          Number of constant values used in computation: LO, BETATT, BETATC, BETACT, BETACC, BETADEL.
 int nCyclesE
          Number of cycles of ICAN/JAVA electrical cyclic data for current case.
 int nCyclesH
          Number of cycles of ICAN/JAVA hygral cyclic data for current case.
 int nCyclesT
          Number of cycles of ICAN/JAVA thermal cyclic data for current case.
static int nMSLOADS
          Number of mechanical cyclic loads.
static int NONUDF
          Subscript of boolean NONUDF.
static int nOUTPUTS
          Number of outputs.
private static double ONE
          The number one.
private static java.lang.String[] OutputDescriptions
          Array containing descriptions of print switches.
 boolean[] outputs
          ICAN/JAVA data print switches for current case.
 java.util.Vector plyList
          ICAN/JAVA Ply data for current case.
static int PRINTALL
          Subscript of print switch PRINT ALL.
static int PRINTCONSTI
          Subscript of print switch PRINT CONSTI.
static int PRINTDAMPING
          Subscript of print switch PRINT DAMPING.
static int PRINTDELAMI
          Subscript of print switch PRINT DELAMI.
static int PRINTDELAMS
          Subscript of print switch PRINT DELAMS.
static int PRINTDISPFOR
          Subscript of print switch PRINT DISPFOR.
static int PRINTDURAAN
          Subscript of print switch PRINT DURAAN.
static int PRINTDURADEF
          Subscript of print switch PRINT DURADEF.
static int PRINTDURADET
          Subscript of print switch PRINT DURADET.
static int PRINTDURASUM
          Subscript of print switch PRINT DURASUM.
static int PRINTDURDEFS
          Subscript of print switch PRINT DURDEFS.
static int PRINTFAILDET
          Subscript of print switch PRINT FAIL DET.
static int PRINTFAILSUM
          Subscript of print switch PRINT FAIL SUM.
static int PRINTFEMDATA
          Subscript of print switch PRINT FEMDATA.
static int PRINTFIBMATP
          Subscript of print switch PRINT FIBMATP.
static int PRINTFREESTR
          Subscript of print switch PRINT FREESTR.
static int PRINTIDECHO
          Subscript of print switch PRINT IDECHO.
static int PRINTIMPACT
          Subscript of print switch PRINT IMPACT.
static int PRINTIMPSUM
          Subscript of print switch PRINT IMPSUM.
static int PRINTINPTSUM
          Subscript of print switch PRINT INPTSUM.
static int PRINTLOGO
          Subscript of print switch PRINT LOGO.
static int PRINTMICRO
          Subscript of print switch PRINT MICRO.
static int PRINTNONE
          Subscript of print switch PRINT NONE.
static int PRINTNUMISM
          Subscript of print switch PRINT NUMISM.
static int PRINTPLYRESP
          Subscript of print switch PRINT PLYRESP.
static int PRINTPROPCOM
          Subscript of print switch PRINT PROPCOM.
static int PRINTREDSTIF
          Subscript of print switch PRINT REDSTIF.
static int PRINTSTRCON
          Subscript of print switch PRINT STRCON.
static int PRINTSTRSINF
          Subscript of print switch PRINT STRSINF.
static int PRINTSTRSTRN
          Subscript of print switch PRINT STRSTRN.
 LoadItem[] rateLoadItem
          ICAN/JAVA Rate data for current case.
 java.util.Vector reactionData
          ICAN/JAVA reaction data for current case.
static int RINDV
          Subscript of boolean RINDV.
static int SQARRA
          Subscript of boolean SQARRA.
static int SQDAMP
          Subscript of boolean SQDAMP.
 java.util.Vector subsliceList
          ICAN/JAVA Slice subslicing data for current case.
 java.util.Vector substructureList
          ICAN/JAVA Substructure slicing data for current case.
 ThermalLoadItem[] thermalCyclicLoad
          ICAN/JAVA thermal cyclic data for current case.
 ThermalLoadItem thermalStaticLoad
          ICAN/JAVA thermal static data for current case.
 double timeAtStress
          ICAN/JAVA Time Data for current case.
 java.lang.String title
          ICAN/JAVA data title for current case.
static int UNITS
          Subscript of boolean UNITS.
 java.util.Vector voidVolumeRatioItems
          ICAN/JAVA Void Volume Ratio Override data for current case.
 
Constructor Summary
IcanDataSet()
          Constructor for a new set of ICAN/JAVA data.
 
Method Summary
 void changeAllDataUnits(int oldUnits, int nowUnits)
          Change the data from one system of units to another.
 int copyIcanDataFile(java.lang.String fileName, java.io.PrintWriter dbout)
          Open specified ICAN/JAVA data file and copy contents to output.
static java.lang.String getBooleanDescr(int ibool)
          Return description of Boolean data item for specified index.
 double getConstant(int ic)
          Return value for constant data: LO, BETATT, BETATC, BETACT, BETACC, BETADEL.
 double[] getConstants()
          Return value(s) for constant data: LO, BETATT, BETATC, BETACT, BETACC, BETADEL.
 double getCumThickness(double[] thicknesses)
          Fill in table of Ply or Slice cumulative thicknesses.
static java.lang.String getLastFileName()
          Get lastFileName, the name of the data file last opened and read or written.
 java.lang.String[][] getMaterialPairs()
          Fill in the table of Fiber/Matrix and Particle/Binder (or Matrix) combinations used without interphase.
 int getMaterialSystemItemNo(java.lang.String mID)
          Return index for specified Material Code.
static java.lang.String getName()
          Get class name.
static java.lang.String getOutputDescr(int iOut)
          Return description of Output data item for specified index.
 PlyListItem getPlyListItem(int thePly)
          Get the PlyListItem for a given ply number.
 double[] getPlyThicknesses()
          Fill in the table of Ply thicknesses.
 double[] getPositions(double[] thicknesses)
          Fill in table of mid-Ply or mid-slice position values.
 double getReactionValue(java.lang.String fiber, java.lang.String matrix)
          Get reaction value to use in MultiFactor Interaction Model given the fiber and matrix material codes.
 int getVVRI(int thePly, int iPS)
          Get the subscript in the void volume ratio override Vector given the ply and whether it is the primary or secondary material for which an override may be defined.
 boolean isAnyDataToSave()
          Is there any acceptable data to save?
 boolean parseBOOLEAN(java.lang.String thisLine, int offset)
          Parse a line of Boolean data.
 double[] parseConstant(java.lang.String thisLine, int offset)
          Parse a line of Constant data.
 int parseCycles(java.lang.String thisLine, int offset)
          Parse a line of Hygral or Thermal or Electrical Loading data containing the number of cycles.
 double parseDouble(java.lang.String thisLine, int offset)
          Parse a line containing a single number; either time or frequency.
 ElectricalLoadItem[] parseElectricalCyclicLoadItem(java.lang.String thisLine, int offset, ElectricalLoadItem[] thisLoad)
          Parse a line of Electrical Cyclic Loading data.
 HygralLoadItem[] parseHygralCyclicLoadItem(java.lang.String thisLine, int offset, HygralLoadItem[] thisLoad)
          Parse a line of Hygral Cyclic Loading data.
 int parsePRINT(java.lang.String thisLine, int offset)
          Parse a line of Print data.
 ThermalLoadItem[] parseThermalCyclicLoadItem(java.lang.String thisLine, int offset, ThermalLoadItem[] thisLoad)
          Parse a line of Thermal Cyclic Loading data.
 int printIcanData()
          Open standard output print file file and write ICAN/JAVA data.
 int readIcanData(java.lang.String fileName)
          Open specified file and read ICAN/JAVA data file contents.
 int readNextIcanData(java.io.BufferedReader dbin)
          Read ICAN/JAVA data file contents.
 void removeAllElements()
          Remove all elements from vectors, arrays, etc.
 void setConstant(int ic, double dval)
          Set value for constant data: LO, BETATT, BETATC, BETACT, BETACC, BETADEL.
 void setDefaultBooleans()
          Set ICAN/JAVA defaults for Booleans.
 void setDefaultOutputs()
          Set ICAN/JAVA defaults for Outputs.
 int writeIcanData(java.io.PrintWriter dbout)
          Write ICAN/JAVA data file contents.
 int writeIcanData(java.lang.String fileName)
          Open specified file and write ICAN/JAVA data to file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ICANDATADIR

public static final java.lang.String ICANDATADIR
String containing the server data directory.

See Also:
Constant Field Values

SQARRA

public static final int SQARRA
Subscript of boolean SQARRA.

See Also:
Constant Field Values

SQDAMP

public static final int SQDAMP
Subscript of boolean SQDAMP.

See Also:
Constant Field Values

COMSAT

public static final int COMSAT
Subscript of boolean COMSAT.

See Also:
Constant Field Values

CSANB

public static final int CSANB
Subscript of boolean CSANB.

See Also:
Constant Field Values

BIDE

public static final int BIDE
Subscript of boolean BIDE.

See Also:
Constant Field Values

RINDV

public static final int RINDV
Subscript of boolean RINDV.

See Also:
Constant Field Values

NONUDF

public static final int NONUDF
Subscript of boolean NONUDF.

See Also:
Constant Field Values

DEFECT

public static final int DEFECT
Subscript of boolean DEFECT.

See Also:
Constant Field Values

UNITS

public static final int UNITS
Subscript of boolean UNITS.

See Also:
Constant Field Values

BooleanDescriptions

private static final java.lang.String[] BooleanDescriptions
Array containing descriptions of booleans.


nBOOLEANS

public static final int nBOOLEANS
Number of booleans.


PRINTNONE

public static final int PRINTNONE
Subscript of print switch PRINT NONE.

See Also:
Constant Field Values

PRINTALL

public static final int PRINTALL
Subscript of print switch PRINT ALL.

See Also:
Constant Field Values

PRINTIDECHO

public static final int PRINTIDECHO
Subscript of print switch PRINT IDECHO.

See Also:
Constant Field Values

PRINTLOGO

public static final int PRINTLOGO
Subscript of print switch PRINT LOGO.

See Also:
Constant Field Values

PRINTINPTSUM

public static final int PRINTINPTSUM
Subscript of print switch PRINT INPTSUM.

See Also:
Constant Field Values

PRINTFIBMATP

public static final int PRINTFIBMATP
Subscript of print switch PRINT FIBMATP.

See Also:
Constant Field Values

PRINTSTRSTRN

public static final int PRINTSTRSTRN
Subscript of print switch PRINT STRSTRN.

See Also:
Constant Field Values

PRINTPROPCOM

public static final int PRINTPROPCOM
Subscript of print switch PRINT PROPCOM.

See Also:
Constant Field Values

PRINTCONSTI

public static final int PRINTCONSTI
Subscript of print switch PRINT CONSTI.

See Also:
Constant Field Values

PRINTREDSTIF

public static final int PRINTREDSTIF
Subscript of print switch PRINT REDSTIF.

See Also:
Constant Field Values

PRINTFEMDATA

public static final int PRINTFEMDATA
Subscript of print switch PRINT FEMDATA.

See Also:
Constant Field Values

PRINTDISPFOR

public static final int PRINTDISPFOR
Subscript of print switch PRINT DISPFOR.

See Also:
Constant Field Values

PRINTPLYRESP

public static final int PRINTPLYRESP
Subscript of print switch PRINT PLYRESP.

See Also:
Constant Field Values

PRINTNUMISM

public static final int PRINTNUMISM
Subscript of print switch PRINT NUMISM.

See Also:
Constant Field Values

PRINTFREESTR

public static final int PRINTFREESTR
Subscript of print switch PRINT FREESTR.

See Also:
Constant Field Values

PRINTMICRO

public static final int PRINTMICRO
Subscript of print switch PRINT MICRO.

See Also:
Constant Field Values

PRINTSTRCON

public static final int PRINTSTRCON
Subscript of print switch PRINT STRCON.

See Also:
Constant Field Values

PRINTDELAMI

public static final int PRINTDELAMI
Subscript of print switch PRINT DELAMI.

See Also:
Constant Field Values

PRINTDELAMS

public static final int PRINTDELAMS
Subscript of print switch PRINT DELAMS.

See Also:
Constant Field Values

PRINTSTRSINF

public static final int PRINTSTRSINF
Subscript of print switch PRINT STRSINF.

See Also:
Constant Field Values

PRINTFAILDET

public static final int PRINTFAILDET
Subscript of print switch PRINT FAIL DET.

See Also:
Constant Field Values

PRINTFAILSUM

public static final int PRINTFAILSUM
Subscript of print switch PRINT FAIL SUM.

See Also:
Constant Field Values

PRINTDURAAN

public static final int PRINTDURAAN
Subscript of print switch PRINT DURAAN.

See Also:
Constant Field Values

PRINTDURADET

public static final int PRINTDURADET
Subscript of print switch PRINT DURADET.

See Also:
Constant Field Values

PRINTDURASUM

public static final int PRINTDURASUM
Subscript of print switch PRINT DURASUM.

See Also:
Constant Field Values

PRINTDURADEF

public static final int PRINTDURADEF
Subscript of print switch PRINT DURADEF.

See Also:
Constant Field Values

PRINTDURDEFS

public static final int PRINTDURDEFS
Subscript of print switch PRINT DURDEFS.

See Also:
Constant Field Values

PRINTIMPACT

public static final int PRINTIMPACT
Subscript of print switch PRINT IMPACT.

See Also:
Constant Field Values

PRINTIMPSUM

public static final int PRINTIMPSUM
Subscript of print switch PRINT IMPSUM.

See Also:
Constant Field Values

PRINTDAMPING

public static final int PRINTDAMPING
Subscript of print switch PRINT DAMPING.

See Also:
Constant Field Values

OutputDescriptions

private static final java.lang.String[] OutputDescriptions
Array containing descriptions of print switches.


nOUTPUTS

public static final int nOUTPUTS
Number of outputs.


MSLOADS

public static final java.lang.String[] MSLOADS
Array containing descriptions of mechanical cyclic loads.


CNXX

public static final int CNXX
Subscript of mechanical cyclic load CNXX.

See Also:
Constant Field Values

CNYY

public static final int CNYY
Subscript of mechanical cyclic load CNYY.

See Also:
Constant Field Values

CNXY

public static final int CNXY
Subscript of mechanical cyclic load CNXY.

See Also:
Constant Field Values

CMXX

public static final int CMXX
Subscript of mechanical cyclic load CMXX.

See Also:
Constant Field Values

CMYY

public static final int CMYY
Subscript of mechanical cyclic load CMYY.

See Also:
Constant Field Values

CMXY

public static final int CMXY
Subscript of mechanical cyclic load CMXY.

See Also:
Constant Field Values

nMSLOADS

public static final int nMSLOADS
Number of mechanical cyclic loads.


title

public java.lang.String title
ICAN/JAVA data title for current case.


booleans

public boolean[] booleans
ICAN/JAVA data booleans for current case.


outputs

public boolean[] outputs
ICAN/JAVA data print switches for current case.


plyList

public java.util.Vector plyList
ICAN/JAVA Ply data for current case.


substructureList

public java.util.Vector substructureList
ICAN/JAVA Substructure slicing data for current case.


subsliceList

public java.util.Vector subsliceList
ICAN/JAVA Slice subslicing data for current case.


defectList

public DefectItems defectList
ICAN/JAVA ply/slice/subslice defect data for current case.


materialSystem

public java.util.Vector materialSystem
ICAN/JAVA material system data for current case.


voidVolumeRatioItems

public java.util.Vector voidVolumeRatioItems
ICAN/JAVA Void Volume Ratio Override data for current case.


reactionData

public java.util.Vector reactionData
ICAN/JAVA reaction data for current case.


appliedLoading

public java.util.Vector appliedLoading
ICAN/JAVA mechanical static applied loading data for current case.


cmsLoad

public CycleOrFatigueLoadItem[] cmsLoad
ICAN/JAVA mechanical cyclic data for current case.


thermalStaticLoad

public ThermalLoadItem thermalStaticLoad
ICAN/JAVA thermal static data for current case.


thermalCyclicLoad

public ThermalLoadItem[] thermalCyclicLoad
ICAN/JAVA thermal cyclic data for current case.


nCyclesT

public int nCyclesT
Number of cycles of ICAN/JAVA thermal cyclic data for current case.


hygralStaticLoad

public HygralLoadItem hygralStaticLoad
ICAN/JAVA hygral static data for current case.


hygralCyclicLoad

public HygralLoadItem[] hygralCyclicLoad
ICAN/JAVA hygral cyclic data for current case.


nCyclesH

public int nCyclesH
Number of cycles of ICAN/JAVA hygral cyclic data for current case.


electricalStaticLoad

public ElectricalLoadItem electricalStaticLoad
ICAN/JAVA electrical static data for current case.


electricalCyclicLoad

public ElectricalLoadItem[] electricalCyclicLoad
ICAN/JAVA electrical cyclic data for current case.


nCyclesE

public int nCyclesE
Number of cycles of ICAN/JAVA electrical cyclic data for current case.


decayLoadItem

public LoadItem decayLoadItem
ICAN/JAVA decay (Corrosion Deterioration) data for current case.


rateLoadItem

public LoadItem[] rateLoadItem
ICAN/JAVA Rate data for current case.


timeAtStress

public double timeAtStress
ICAN/JAVA Time Data for current case.


frequency

public double frequency
ICAN/JAVA Frequency Data for current case.


dampingData

public DampingDataItem dampingData
ICAN/JAVA damping data for current case.


impactData

public ImpactDataItem impactData
ICAN/JAVA impact data for current case.


LO

public static final int LO
ICAN/JAVA Constant lo is written as lower case script L, subscript o. It is experimental 1/2 side of base of volume element. Used in computation of Hj. Units are inch/rad (or meter/rad). Default value is 0.0186 inch/rad. Described in Appendix D of "Design Oriented Analysis and Structural Synthesis of Multilayered Filamentary Composites" by Chris Chamis, CWRU Ph.D. Thesis, September 1967.

See Also:
Constant Field Values

BETATT

public static final int BETATT
Experimental correlation factor (betaTT = K'12TT) for combined stress value criteria (Modified Distortion Energy). Used extremely rarely and only where all values are available from measured data. Default value is 1.0.

See Also:
Constant Field Values

BETATC

public static final int BETATC
Experimental correlation factor (betaTC = K'12TC) for combined stress value criteria (Modified Distortion Energy). Used extremely rarely and only where all values are available from measured data. Default value is 1.0.

See Also:
Constant Field Values

BETACT

public static final int BETACT
Experimental correlation factor (betaCT = K'12CT) for combined stress value criteria (Modified Distortion Energy). Used extremely rarely and only where all values are available from measured data. Default value is 1.0.

See Also:
Constant Field Values

BETACC

public static final int BETACC
Experimental correlation factor (betaCC = K'12CC) for combined stress value criteria (Modified Distortion Energy). Used extremely rarely and only where all values are available from measured data. Default value is 1.0.

See Also:
Constant Field Values

BETADEL

public static final int BETADEL
Experimental correlation factor (betaDel) for onset of delamination criteria. Used extremely rarely and only where all values are available from measured data. Default value is 1.0.

See Also:
Constant Field Values

nConstants

public static final int nConstants
Number of constant values used in computation: LO, BETATT, BETATC, BETACT, BETACC, BETADEL.

See Also:
Constant Field Values

constantValues

public double[] constantValues
Array of constants used in computation: LO, BETATT, BETATC, BETACT, BETACC, BETADEL.


lastFileName

private static java.lang.String lastFileName
Last file name used to read ICAN/JAVA data.


ONE

private static final double ONE
The number one.

See Also:
Constant Field Values

HALF

private static final double HALF
The number one half.

See Also:
Constant Field Values

loDEFAULT

public static final double loDEFAULT
The default value Used in computation of Hj. Units are in/rad (or meter/rad).

See Also:
Constant Field Values
Constructor Detail

IcanDataSet

public IcanDataSet()
Constructor for a new set of ICAN/JAVA data.

Method Detail

removeAllElements

public void removeAllElements()
Remove all elements from vectors, arrays, etc.


getLastFileName

public static java.lang.String getLastFileName()
Get lastFileName, the name of the data file last opened and read or written.

Returns:
Name of data file last opened and read or written.

readIcanData

public int readIcanData(java.lang.String fileName)
Open specified file and read ICAN/JAVA data file contents.

Parameters:
fileName - Name of file to open and read.
Returns:
Number of errors encountered.
See Also:
readNextIcanData(BufferedReader)

readNextIcanData

public int readNextIcanData(java.io.BufferedReader dbin)
Read ICAN/JAVA data file contents.

Parameters:
dbin - Input stream for file to read.
Returns:
Number of errors encountered.

parseBOOLEAN

public boolean parseBOOLEAN(java.lang.String thisLine,
                            int offset)
Parse a line of Boolean data.

Parameters:
thisLine - The line to parse.
offset - The offset to a blank or semi-colon or other character indicating the end of the first field and the start of the second field.
Returns:
Boolean value: true or false.

parsePRINT

public int parsePRINT(java.lang.String thisLine,
                      int offset)
Parse a line of Print data.

Parameters:
thisLine - The line to parse.
offset - The offset to a blank or semi-colon or other character indicating the end of the first field and the start of the second field.
Returns:
Index of Print desired; -1 if error.

parseThermalCyclicLoadItem

public ThermalLoadItem[] parseThermalCyclicLoadItem(java.lang.String thisLine,
                                                    int offset,
                                                    ThermalLoadItem[] thisLoad)
Parse a line of Thermal Cyclic Loading data.

Parameters:
thisLine - The line to parse.
offset - The offset to a blank or semi-colon or other character indicating the end of the first field and the start of the second field.
thisLoad - Previous Thermal Cyclic Loading data to add this data to. Add this data at beginning when current line contains "MORE" as second field.
Returns:
New Thermal Cyclic Loading data.

parseHygralCyclicLoadItem

public HygralLoadItem[] parseHygralCyclicLoadItem(java.lang.String thisLine,
                                                  int offset,
                                                  HygralLoadItem[] thisLoad)
Parse a line of Hygral Cyclic Loading data.

Parameters:
thisLine - The line to parse.
offset - The offset to a blank or semi-colon or other character indicating the end of the first field and the start of the second field.
thisLoad - Previous Hygral Cyclic Loading data to add this data to. Add this data at beginning when current line contains "MORE" as second field.
Returns:
New Hygral Cyclic Loading data.

parseElectricalCyclicLoadItem

public ElectricalLoadItem[] parseElectricalCyclicLoadItem(java.lang.String thisLine,
                                                          int offset,
                                                          ElectricalLoadItem[] thisLoad)
Parse a line of Electrical Cyclic Loading data.

Parameters:
thisLine - The line to parse.
offset - The offset to a blank or semi-colon or other character indicating the end of the first field and the start of the second field.
thisLoad - Previous Electrical Cyclic Loading data to add this data to. Add this data at beginning when current line contains "MORE" as second field.
Returns:
New Electrical Cyclic Loading data.

parseCycles

public int parseCycles(java.lang.String thisLine,
                       int offset)
Parse a line of Hygral or Thermal or Electrical Loading data containing the number of cycles.

Parameters:
thisLine - The line to parse.
offset - The offset to a blank or semi-colon or other character indicating the end of the first field and the start of the second field.
Returns:
Number of cycles for the cyclic loading data.

parseDouble

public double parseDouble(java.lang.String thisLine,
                          int offset)
Parse a line containing a single number; either time or frequency.

Parameters:
thisLine - The line to parse.
offset - The offset to a blank or semi-colon or other character indicating the end of the first field and the start of the second field.
Returns:
Value for "TIME" or "FREQUENCY".

parseConstant

public double[] parseConstant(java.lang.String thisLine,
                              int offset)
Parse a line of Constant data. The constant data line contains:
  1. lo (written as lower case script L, subscript o) - Experimental 1/2 side of base of volume element. Used in computation of Hj. Units are inch/rad (or meter/rad). Default value is 0.0186 inch/rad. Described in Appendix D of "Design Oriented Analysis and Structural Synthesis of Multilayered Filamentary Composites" by Chris Chamis, CWRU Ph.D. Thesis, September 1967.
  2. betaTT (= K'12TT) - Experimental correlation factor for combined stress value criteria (Modified Distortion Energy). Used extremely rarely and only where all values are available from measured data. Default value is 1.0.
  3. betaTC (= K'12TC) - Experimental correlation factor for combined stress value criteria (Modified Distortion Energy). Used extremely rarely and only where all values are available from measured data. Default value is 1.0.
  4. betaCT (= K'12CT) - Experimental correlation factor for combined stress value criteria (Modified Distortion Energy). Used extremely rarely and only where all values are available from measured data. Default value is 1.0.
  5. betaCC (= K'12CC) - Experimental correlation factor for combined stress value criteria (Modified Distortion Energy). Used extremely rarely and only where all values are available from measured data. Default value is 1.0.
  6. betaDel - Experimental correlation factor (betaDel) for onset of delamination criteria. Used extremely rarely and only where all values are available from measured data. Default value is 1.0.

Parameters:
thisLine - The line to parse.
offset - The offset to a blank or semi-colon or other character indicating the end of the first field and the start of the second field.
Returns:
Constant values for: LO, BETATT, BETATC, BETACT, BETACC, BETADEL.

changeAllDataUnits

public void changeAllDataUnits(int oldUnits,
                               int nowUnits)
Change the data from one system of units to another. The current system of units is known.

Parameters:
oldUnits - Previous system of units.
nowUnits - Current system of units.

getBooleanDescr

public static java.lang.String getBooleanDescr(int ibool)
Return description of Boolean data item for specified index.

Parameters:
ibool - The index of the Boolean data item.
Returns:
Description of Boolean data item; null if error.

getOutputDescr

public static java.lang.String getOutputDescr(int iOut)
Return description of Output data item for specified index.

Parameters:
iOut - The index of the Output data item.
Returns:
Description of Output data item; null if error.

getConstants

public double[] getConstants()
Return value(s) for constant data: LO, BETATT, BETATC, BETACT, BETACC, BETADEL.

Returns:
Value(s) for constant data.

getConstant

public double getConstant(int ic)
Return value for constant data: LO, BETATT, BETATC, BETACT, BETACC, BETADEL.

Parameters:
ic - Subscript of chosen constant data type.
Returns:
Value(s) for constant data.

setDefaultBooleans

public void setDefaultBooleans()
Set ICAN/JAVA defaults for Booleans.


setDefaultOutputs

public void setDefaultOutputs()
Set ICAN/JAVA defaults for Outputs.


setConstant

public void setConstant(int ic,
                        double dval)
Set value for constant data: LO, BETATT, BETATC, BETACT, BETACC, BETADEL.

Parameters:
ic - Subscript of chosen constant data type.
dval - Value for constant data.

getMaterialSystemItemNo

public int getMaterialSystemItemNo(java.lang.String mID)
Return index for specified Material Code.

Parameters:
mID - Material Code.
Returns:
Index of Material Code in Vector of Material DataBank items; -1 if error.

getPlyThicknesses

public double[] getPlyThicknesses()
Fill in the table of Ply thicknesses.

Returns:
Array containing the thickness of each ply. Return null, if none available.

getCumThickness

public double getCumThickness(double[] thicknesses)
Fill in table of Ply or Slice cumulative thicknesses.

Parameters:
thicknesses - Array of thickness values.
Returns:
Array of cumulative thicknesses values.

getPositions

public double[] getPositions(double[] thicknesses)
Fill in table of mid-Ply or mid-slice position values.

Parameters:
thicknesses - Array of thickness values.
Returns:
Array of cumulative thicknesses values.

getMaterialPairs

public java.lang.String[][] getMaterialPairs()
Fill in the table of Fiber/Matrix and Particle/Binder (or Matrix) combinations used without interphase.

Returns:
Array containing the Fiber/Matrix and Particle/Binder (or Matrix) combinations used. Return null, if none available.

getReactionValue

public double getReactionValue(java.lang.String fiber,
                               java.lang.String matrix)
Get reaction value to use in MultiFactor Interaction Model given the fiber and matrix material codes.

Parameters:
fiber - Fiber material code.
matrix - Matrix material code.
Returns:
Reaction value to use in MFIM.

getPlyListItem

public PlyListItem getPlyListItem(int thePly)
Get the PlyListItem for a given ply number.

Parameters:
thePly - The ply number.
Returns:
The PlyListItem.

getVVRI

public int getVVRI(int thePly,
                   int iPS)
Get the subscript in the void volume ratio override Vector given the ply and whether it is the primary or secondary material for which an override may be defined.

Parameters:
thePly - the ply number.
iPS - 0 for primary, 1 for secondary.
Returns:
subscript in the list of void volume ratio override data for which an override is defined. Return negative if no match found.

isAnyDataToSave

public boolean isAnyDataToSave()
Is there any acceptable data to save?

Returns:
True if there is some data to save; else, false, if there is no data to save.

writeIcanData

public int writeIcanData(java.io.PrintWriter dbout)
Write ICAN/JAVA data file contents.

Parameters:
dbout - Output print stream for write.
Returns:
Number of errors encountered.
See Also:
writeIcanData(String)

writeIcanData

public int writeIcanData(java.lang.String fileName)
Open specified file and write ICAN/JAVA data to file.

Parameters:
fileName - Name of file to open and write.
Returns:
Number of errors encountered.
See Also:
writeIcanData(PrintWriter)

printIcanData

public int printIcanData()
Open standard output print file file and write ICAN/JAVA data.

Returns:
Number of errors encountered.

copyIcanDataFile

public int copyIcanDataFile(java.lang.String fileName,
                            java.io.PrintWriter dbout)
Open specified ICAN/JAVA data file and copy contents to output.

Parameters:
fileName - Name of file to open and read.
dbout - Output print stream for write.
Returns:
Number of errors encountered.

getName

public static java.lang.String getName()
Get class name.

Returns:
Class name.