STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
engine.layerx.card.EngineSampler Class Reference

Public Member Functions

None __init__ (self, Any config, float ambient_pa)
str kind (self)
Optional[Dict[str, float]] __call__ (self, float p_O, float p_F)

Public Attributes

 runner = PintleEngineRunner(line_exit_config(config))
 config = self.runner.config
 ambient_pa = float(ambient_pa)
 fast
int calls = 0

Detailed Description

EngineDesign at the line exit, one operating point per call.

``(p_line_O, p_line_F) -> {Pc, mdot_O, mdot_F, F, ...}`` at ``ambient_pa``, or ``None`` where
EngineDesign has no solution. The numba kernel when it handles this engine, otherwise the
Python solve: same physics, ~100x the cost.

Definition at line 111 of file card.py.

Constructor & Destructor Documentation

◆ __init__()

None engine.layerx.card.EngineSampler.__init__ ( self,
Any config,
float ambient_pa )

Definition at line 119 of file card.py.

Member Function Documentation

◆ __call__()

◆ kind()

str engine.layerx.card.EngineSampler.kind ( self)

Definition at line 134 of file card.py.

References fast.

Member Data Documentation

◆ ambient_pa

engine.layerx.card.EngineSampler.ambient_pa = float(ambient_pa)

Definition at line 128 of file card.py.

Referenced by __call__().

◆ calls

int engine.layerx.card.EngineSampler.calls = 0

Definition at line 131 of file card.py.

Referenced by __call__().

◆ config

engine.layerx.card.EngineSampler.config = self.runner.config

Definition at line 127 of file card.py.

Referenced by __call__(), engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver._advance_walls(), engine.pipeline.cea_cache.CEACache._build_cache(), engine.pipeline.cea_cache.CEACache._build_cache_parallel(), engine.pipeline.cea_cache.CEACache._build_cache_sequential(), engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver._build_walls(), engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver._geometry(), engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver._graphite_layers(), engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver._insert_backing(), engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver._liner_layers(), engine.pipeline.cea_cache.CEACache._load_cache(), engine.pipeline.cea_cache.CEACache._save_cache(), engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver._station_loads(), engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver._wall_report(), engine.pipeline.cea_cache.CEACache.aux(), engine.pipeline.system_diagnostics.SystemDiagnostics.diagnose_all(), engine.pipeline.cea_cache.CEACache.eval(), engine.pipeline.cea_cache.CEACache.eval_cf_vac(), engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver.liner_end(), engine.pipeline.time_varying_solver.TimeVaryingCoupledSolver.solve_time_step(), test_robust_ddp_constraints.TestConstraints.test_all_constraints_safe(), test_robust_ddp_engine_wrapper.TestEngineWrapper.test_cache_stats(), test_robust_ddp_engine_wrapper.TestEngineWrapper.test_caching(), test_robust_ddp_engine_wrapper.TestEngineWrapper.test_clear_cache(), test_robust_ddp_constraints.TestConstraints.test_constraint_summary(), test_robust_ddp_engine_wrapper.TestEngineWrapper.test_convenience_function(), test_robust_ddp_constraints.TestConstraints.test_copv_minimum_constraint(), test_robust_ddp_constraints.TestConstraints.test_edge_cases(), test_robust_ddp_engine_wrapper.TestEngineWrapper.test_estimate_error_handling(), test_robust_ddp_engine_wrapper.TestEngineWrapper.test_estimate_from_pressures_mock(), test_robust_ddp_engine_wrapper.TestEngineWrapper.test_estimate_without_stability(), test_robust_ddp_constraints.TestConstraints.test_headroom_constraints(), test_robust_ddp_constraints.TestConstraints.test_injector_stiffness_constraints(), test_robust_ddp_constraints.TestConstraints.test_mixture_ratio_constraints(), test_robust_ddp_robustness.TestRobustness.test_multiple_updates_convergence(), test_robust_ddp_constraints.TestConstraints.test_multiple_violations(), test_robust_ddp_constraints.TestConstraints.test_nan_handling(), test_robust_ddp_dynamics.TestDynamics.test_regulator_behavior(), test_robust_ddp_robustness.TestRobustness.test_tube_propagate_basic(), test_robust_ddp_robustness.TestRobustness.test_tube_propagate_validation(), test_robust_ddp_robustness.TestRobustness.test_tube_propagate_widens(), test_robust_ddp_robustness.TestRobustness.test_tube_propagate_with_large_w_bar(), test_robust_ddp_constraints.TestConstraints.test_ullage_maximum_constraints(), test_robust_ddp_robustness.TestRobustness.test_update_bounds_basic(), test_robust_ddp_robustness.TestRobustness.test_update_bounds_beta(), test_robust_ddp_robustness.TestRobustness.test_update_bounds_ema_behavior(), test_robust_ddp_robustness.TestRobustness.test_update_bounds_inflation(), test_robust_ddp_robustness.TestRobustness.test_update_bounds_requires_mass_flow(), test_robust_ddp_robustness.TestRobustness.test_update_bounds_residual_spike(), test_robust_ddp_robustness.TestRobustness.test_update_bounds_with_engine_wrapper(), and test_robust_ddp_engine_wrapper.TestEngineWrapper.test_wrapper_initialization().

◆ fast

engine.layerx.card.EngineSampler.fast
Initial value:
= bool(accel.enabled() and accel.can_handle_chamber(self.config)
and getattr(self.runner.cea_cache, "use_3d", False))

Definition at line 129 of file card.py.

Referenced by __call__(), and kind().

◆ runner


The documentation for this class was generated from the following file:
  • EngineDesign/engine/layerx/card.py