replace isVOF with isReacting
This commit is contained in:
parent
ab7ba4b4b5
commit
bd679dea07
5 changed files with 9 additions and 9 deletions
|
|
@ -58,7 +58,7 @@ public class CombustionBoundaryConditionsView implements BoundaryConditionsView
|
|||
|
||||
@Override
|
||||
public boolean isEnabled(Model model) {
|
||||
return module.isVOF();
|
||||
return module.isReacting();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ public class CombustionBoundaryConditionsView implements BoundaryConditionsView
|
|||
|
||||
@Override
|
||||
public boolean isEnabled(Model model) {
|
||||
return module.isVOF();
|
||||
return module.isReacting();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ public class CombustionModule extends ApplicationModuleAdapter {
|
|||
|
||||
@Override
|
||||
public void saveDefaultsToProject() {
|
||||
if (isVOF()) {
|
||||
if (isReacting()) {
|
||||
StateBuilder.saveDefaultsToProject(model, defaults);
|
||||
} else {
|
||||
}
|
||||
|
|
@ -145,7 +145,7 @@ public class CombustionModule extends ApplicationModuleAdapter {
|
|||
|
||||
@Override
|
||||
public Fields loadDefaultsFields(String region) {
|
||||
if (isVOF()) {
|
||||
if (isReacting()) {
|
||||
return FieldsDefaults.loadFieldsFromDefaults(model.getProject().getBaseDir(), model.getState(), defaults, model.getPatches(), region);
|
||||
} else {
|
||||
return new Fields();
|
||||
|
|
@ -162,7 +162,7 @@ public class CombustionModule extends ApplicationModuleAdapter {
|
|||
return boundaryConditionsView;
|
||||
}
|
||||
|
||||
public boolean isVOF() {
|
||||
public boolean isReacting() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ public class CombustionPhasesView implements PhasesView {
|
|||
|
||||
@Override
|
||||
public void load(Model model) {
|
||||
if (module.isVOF()) {
|
||||
if (module.isReacting()) {
|
||||
_layoutComponents();
|
||||
_load(model);
|
||||
}
|
||||
|
|
@ -80,7 +80,7 @@ public class CombustionPhasesView implements PhasesView {
|
|||
|
||||
@Override
|
||||
public void save(Model model) {
|
||||
if (module.isVOF()) {
|
||||
if (module.isReacting()) {
|
||||
_save(model);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public class CombustionTreeView extends AbstractTreeViewAdapter {
|
|||
|
||||
@Override
|
||||
public void updateCaseSetupTree(ModuleElementPanel viewElementPanel) {
|
||||
if (module.isVOF()) {
|
||||
if (module.isReacting()) {
|
||||
viewElementPanel.addPanel(phasesPanel);
|
||||
} else {
|
||||
viewElementPanel.removePanel(phasesPanel);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public class CombustionWriter {
|
|||
}
|
||||
|
||||
public void write() {
|
||||
if (module.isVOF()) {
|
||||
if (module.isReacting()) {
|
||||
if (model.getState().isIncompressible()) {
|
||||
writeIncompressibleMaterials();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue