public class Ion extends java.lang.Object
Constructor and Description |
---|
Ion(java.lang.String n)
Create an Ion with the given name.
|
Modifier and Type | Method and Description |
---|---|
double |
getC0()
Gets the value of the concentration in M, at the left side of
the junction (x=0).
|
java.lang.String |
getCdadc()
Gets the parameter depending on the activity coefficient.
|
int |
getCharge()
Gets the charge of the ion, measured with reference to the electron.
|
double |
getCL()
Gets the value of the concentration in M, at the right side of
the junction (x=L).
|
double |
getMu()
Gets the mobility of the ion, v/F, measured in m/s/N.
|
java.lang.String |
getName()
Gets the name.
|
double |
getPhi()
Gets the flux of the Ion.
|
void |
setC0(double v)
Sets the value of the concentration at the left side of
the junction (x=0).
|
void |
setCdadc(java.lang.String v)
Sets the parameter depending on the activity coefficient.
|
void |
setCharge(int v)
Sets the charge of the ion, measured with reference to the electron.
|
void |
setCL(double v)
Sets the value of the concentration at the right side of
the junction (x=L).
|
void |
setMu(double v)
Sets the mobility of the ion, v/F, measured in m/s/N.
|
void |
setName(java.lang.String n)
Sets the name.
|
void |
setPhi(double v)
Sets the flux of the Ion.
|
java.lang.String |
toString() |
public Ion(java.lang.String n)
n
- the name.public int getCharge()
public double getMu()
public java.lang.String getCdadc()
public double getPhi()
public double getC0()
public double getCL()
public void setCharge(int v)
v
- the charge.public void setMu(double v)
v
- the mobility.public void setCdadc(java.lang.String v)
v
- the parameter cdadc.public void setPhi(double v)
v
- the (relative) flux.public void setC0(double v)
v
- the concentration c0 in molecules per cubic meter.public void setCL(double v)
v
- the concentration cL in molecules per cubic meter.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
public void setName(java.lang.String n)
n
- the name to be set.