补充test_mql pneumatic_69局部参考RHS候选
This commit is contained in:
1 parent
e17a952bee
commit
420bafeb4e
4 files changed
+186
-7
No files matched your search
@@ -784,6 +784,7 @@ class TestMqlFullStateComparisonExecutionConfig:
|
||||
inlet_node_temperature_k: float = 293.15
|
||||
resistance_boundary_temperature_k: float = 293.15
|
||||
use_pneumatic_96_reference_rhs: bool = False
|
||||
use_pneumatic_69_reference_rhs: bool = False
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@@ -827,6 +828,9 @@ def run_test_mql_full_state_comparison(
|
||||
use_pneumatic_96_reference_rhs=(
|
||||
config.execution.use_pneumatic_96_reference_rhs
|
||||
),
|
||||
use_pneumatic_69_reference_rhs=(
|
||||
config.execution.use_pneumatic_69_reference_rhs
|
||||
),
|
||||
config=config.execution.solver,
|
||||
t_eval=list(config.execution.t_eval) if config.execution.t_eval is not None else None,
|
||||
data_paths=selected_paths,
|
||||
@@ -844,6 +848,9 @@ def run_test_mql_full_state_comparison(
|
||||
use_pneumatic_96_reference_rhs=(
|
||||
config.execution.use_pneumatic_96_reference_rhs
|
||||
),
|
||||
use_pneumatic_69_reference_rhs=(
|
||||
config.execution.use_pneumatic_69_reference_rhs
|
||||
),
|
||||
)
|
||||
series_by_data_path = {
|
||||
data_path: result.series[data_path]
|
||||
@@ -923,6 +930,9 @@ def run_test_mql_pnvo_event_boundary_diagnostic(
|
||||
"use_pneumatic_96_reference_rhs": (
|
||||
config.execution.use_pneumatic_96_reference_rhs
|
||||
),
|
||||
"use_pneumatic_69_reference_rhs": (
|
||||
config.execution.use_pneumatic_69_reference_rhs
|
||||
),
|
||||
}
|
||||
solution = system.simulate_full_state_from_spec(
|
||||
spec,
|
||||
@@ -3290,6 +3300,9 @@ def run_test_mql_pnvo_event_window_diagnostic(
|
||||
"use_pneumatic_96_reference_rhs": (
|
||||
config.execution.use_pneumatic_96_reference_rhs
|
||||
),
|
||||
"use_pneumatic_69_reference_rhs": (
|
||||
config.execution.use_pneumatic_69_reference_rhs
|
||||
),
|
||||
}
|
||||
closure = system.full_state_closure_from_spec(spec, **closure_kwargs)
|
||||
state_vector = closure.initial_state_vector()
|
||||
@@ -4550,15 +4563,25 @@ def main() -> None:
|
||||
action="store_true",
|
||||
help="enable the local reference/mass-offset RHS candidate for pneumatic_96",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--pneumatic-69-reference-rhs",
|
||||
action="store_true",
|
||||
help="enable the local reference/mass-offset RHS candidate for pneumatic_69",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
config = None
|
||||
if args.amesim_results_archive is not None or args.pneumatic_96_reference_rhs:
|
||||
if (
|
||||
args.amesim_results_archive is not None
|
||||
or args.pneumatic_96_reference_rhs
|
||||
or args.pneumatic_69_reference_rhs
|
||||
):
|
||||
config = TestMqlFullStateComparisonScriptConfig(
|
||||
paths=TestMqlFullStateComparisonPathConfig(
|
||||
amesim_results_archive_path=args.amesim_results_archive,
|
||||
),
|
||||
execution=TestMqlFullStateComparisonExecutionConfig(
|
||||
use_pneumatic_96_reference_rhs=args.pneumatic_96_reference_rhs,
|
||||
use_pneumatic_69_reference_rhs=args.pneumatic_69_reference_rhs,
|
||||
),
|
||||
)
|
||||
if args.pnvo_event_boundary:
|
||||
|
||||
Reference in new issue
Block a user