-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial import from 2016.04.00 release: svn r10081
Excluded the following files: **Executable Files** ./iREVEAL/config/Kriging/krig.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit ./iREVEAL/config/Kriging/rom.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit **IDE Configuration Files** ./DataModelProject/.project: XML document text ./iREVEAL/.buildpath: XML document text ./iREVEAL/.classpath: XML document text ./iREVEAL/.project: XML document text ./iREVEAL/.pydevproject: XML document text **Archive Files** ./iREVEAL/lib/gson-2.2.4.jar: Zip archive data, at least v1.0 to extract ./required_packages.zip: Zip archive data, at least v2.0 to extract
- Loading branch information
0 parents
commit 085c759
Showing
57 changed files
with
13,798 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.exe | ||
*.jar | ||
*.zip | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>DataModelFiles</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
</buildSpec> | ||
<natures> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
package DataModel; | ||
|
||
import java.io.Serializable; | ||
import com.google.gson.*; | ||
import com.google.gson.annotations.Expose; | ||
|
||
/** | ||
* Class for assigning an alias | ||
* @author port091 | ||
* | ||
*/ | ||
public class Alias implements Serializable { | ||
|
||
private static final long serialVersionUID = 7248170918564092331L; | ||
|
||
@Expose | ||
private String name; | ||
|
||
private String alias; | ||
|
||
/** | ||
* Creates an easy way to alias names | ||
* @param name | ||
* @param alias | ||
*/ | ||
Alias(String name, String alias) { | ||
this.setName(name); | ||
this.setAlias(alias); | ||
} | ||
|
||
/** | ||
* No Alias provided, use real name | ||
* @param name | ||
*/ | ||
Alias(String name) { | ||
this(name, name); | ||
} | ||
|
||
/** | ||
* No Name or Alias provided | ||
* @param name | ||
*/ | ||
Alias() { | ||
this.setName(""); | ||
this.setAlias(""); | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getAlias() { | ||
return alias; | ||
} | ||
|
||
public void setAlias(String alias) { | ||
this.alias = alias; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return alias; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
package DataModel; | ||
|
||
import java.io.Serializable; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import com.google.gson.*; | ||
import com.google.gson.annotations.Expose; | ||
|
||
/** | ||
* Class representing an inlet or outlet boundary condition | ||
* @author Jinliang Ma at NETL | ||
*/ | ||
public class FlowBoundary implements Serializable | ||
{ | ||
|
||
//flag to indicate if gas phase exits at the boundary | ||
@Expose | ||
private boolean hasGasPhase; | ||
|
||
//flag to indicate if solid phases exit at the boundary | ||
@Expose | ||
private boolean hasSolidPhase; | ||
|
||
//boundary index used by CFD code. MFIX is 1-based | ||
@Expose | ||
private int boundaryIndex; | ||
|
||
//boundary name, user might need to specify. converted to port name for PME | ||
@Expose | ||
private String boundaryName; | ||
|
||
//gas phase mixture | ||
@Expose | ||
private List<GasMixture> gasMixture; | ||
|
||
//a list of solid phase mixtures | ||
@Expose | ||
private List<SolidMixture> solidMixtures; | ||
|
||
//constructor with default boundary index and boundary name | ||
public FlowBoundary() | ||
{ | ||
hasGasPhase = true; | ||
hasSolidPhase = false; | ||
boundaryIndex = 1; | ||
boundaryName = "Boundary"; | ||
gasMixture = new ArrayList<GasMixture>(); | ||
solidMixtures = new ArrayList<SolidMixture>(); | ||
} | ||
|
||
//constructor with given boundary index and boundary name | ||
public FlowBoundary(int i, String name) | ||
{ | ||
hasGasPhase = true; | ||
hasSolidPhase = false; | ||
boundaryIndex = i; | ||
boundaryName = name; | ||
gasMixture = new ArrayList<GasMixture>(); | ||
solidMixtures = new ArrayList<SolidMixture>(); | ||
} | ||
|
||
public boolean hasGasPhase() | ||
{ | ||
return hasGasPhase; | ||
} | ||
|
||
public void enableGasPhase(boolean b) | ||
{ | ||
hasGasPhase = b; | ||
} | ||
|
||
public boolean hasSolidPhase() | ||
{ | ||
return hasSolidPhase; | ||
} | ||
|
||
public void enableSolidPhase(boolean b) | ||
{ | ||
hasSolidPhase = b; | ||
} | ||
|
||
public int getBoundaryIndex() | ||
{ | ||
return boundaryIndex; | ||
} | ||
|
||
public void setBoundaryIndex(int i) | ||
{ | ||
boundaryIndex = i; | ||
} | ||
|
||
public String getBoundaryName() | ||
{ | ||
return boundaryName; | ||
} | ||
|
||
public void setBoundaryName(String name) | ||
{ | ||
boundaryName = name; | ||
} | ||
|
||
public List<GasMixture> getGasMixture() | ||
{ | ||
return gasMixture; | ||
} | ||
|
||
public void setGasMixture(List<GasMixture> gm) | ||
{ | ||
gasMixture = gm; | ||
} | ||
|
||
public List<SolidMixture> getSolidMixtures() | ||
{ | ||
return solidMixtures; | ||
} | ||
|
||
public void setSolidMixtures(List<SolidMixture> sms) | ||
{ | ||
solidMixtures = sms; | ||
} | ||
|
||
//append all available input parameters to a list | ||
public void appendAllInputsToParameterList(List<Parameter> paramList) | ||
{ | ||
if (hasGasPhase) | ||
gasMixture.get(0).appendAllInputsToParameterList(paramList); | ||
if (hasSolidPhase) | ||
{ | ||
for (SolidMixture sm : solidMixtures) | ||
sm.appendAllInputsToParameterList(paramList); | ||
} | ||
} | ||
|
||
//append varied input parameters to a list as ROM input vector | ||
public void appendVariedInputsToParameterList(List<Parameter> paramList) | ||
{ | ||
if (hasGasPhase) | ||
gasMixture.get(0).appendVariedInputsToParameterList(paramList); | ||
if (hasSolidPhase) | ||
{ | ||
for (SolidMixture sm : solidMixtures) | ||
sm.appendVariedInputsToParameterList(paramList); | ||
} | ||
} | ||
|
||
//append all output parameters to a list as ROM output vector | ||
public void appendOutputsToParameterList(List<Parameter> paramList) | ||
{ | ||
if (hasGasPhase) | ||
gasMixture.get(0).appendOutputsToParameterList(paramList); | ||
if (hasSolidPhase) | ||
{ | ||
for (SolidMixture sm : solidMixtures) | ||
sm.appendOutputsToParameterList(paramList); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
package DataModel; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
import com.google.gson.*; | ||
import com.google.gson.annotations.Expose; | ||
|
||
|
||
/** | ||
* Class representing a gas mixture of multiple speices | ||
* @author Jinliang Ma at NETL | ||
*/ | ||
public class GasMixture extends Mixture implements Serializable | ||
{ | ||
//pressure | ||
@Expose | ||
private Parameter pressure; | ||
|
||
//temperature | ||
@Expose | ||
private Parameter temperature; | ||
|
||
//volume fraction or void factor | ||
@Expose | ||
private Parameter volumeFraction; | ||
|
||
|
||
public GasMixture() | ||
{ | ||
super(); | ||
pressure = new Parameter("Pressure"); | ||
pressure.setAllValues(101325.0f); //ambient pressure | ||
temperature = new Parameter("Temperature"); | ||
temperature.setAllValues(298.15f); //ambient temperature | ||
volumeFraction = new Parameter("VolumeFraction"); | ||
volumeFraction.setDefaultValue(1.0f); //gas phase only | ||
} | ||
|
||
public Parameter getPressure() | ||
{ | ||
return pressure; | ||
} | ||
|
||
public void setPressure(Parameter p) | ||
{ | ||
pressure = p; | ||
} | ||
|
||
public Parameter getTemperature() | ||
{ | ||
return temperature; | ||
} | ||
|
||
public void setTemperature(Parameter t) | ||
{ | ||
temperature = t; | ||
} | ||
|
||
public Parameter getVolumeFraction() | ||
{ | ||
return volumeFraction; | ||
} | ||
|
||
public void setVolumeFraction(Parameter vf) | ||
{ | ||
volumeFraction = vf; | ||
} | ||
|
||
//append all available input parameters to a list, valid for inlet boundary only | ||
public void appendAllInputsToParameterList(List<Parameter> paramList) | ||
{ | ||
paramList.add(pressure); | ||
paramList.add(temperature); | ||
paramList.add(volumeFraction); | ||
super.appendAllInputsToParameterList(paramList); | ||
} | ||
|
||
//append varied input parameters to a list, valid for inlet boundary only | ||
public void appendVariedInputsToParameterList(List<Parameter> paramList) | ||
{ | ||
if (pressure.isVaried()) | ||
paramList.add(pressure); | ||
if (temperature.isVaried()) | ||
paramList.add(temperature); | ||
if (volumeFraction.isVaried()) | ||
paramList.add(volumeFraction); | ||
super.appendVariedInputsToParameterList(paramList); | ||
} | ||
|
||
//append all output parameters to a list, valid for outlet boundary only | ||
public void appendOutputsToParameterList(List<Parameter> paramList) | ||
{ | ||
//some outlet boundary conditions could be fixed such as back pressure, still check isVaried flag | ||
if (pressure.isVaried()) | ||
paramList.add(pressure); | ||
if (temperature.isVaried()) | ||
paramList.add(temperature); | ||
if (volumeFraction.isVaried()) | ||
paramList.add(volumeFraction); | ||
super.appendOutputsToParameterList(paramList); | ||
} | ||
|
||
public void setAllParemeterAliasAs(String str) | ||
{ | ||
super.setAllParemeterAliasAs(str); | ||
pressure.setAlias(str); | ||
temperature.setAlias(str); | ||
volumeFraction.setAlias(str); | ||
} | ||
} |
Oops, something went wrong.