embedded3 oblique instrument: RTX_E3_OBLIQUE_DRIVE=pressure (no body force; the sides pin the flow rate)
CI / Build (macos-latest) (push) Waiting to run
CI / Test (macos-latest) (push) Blocked by required conditions
CI / Test (ubuntu-latest) (push) Blocked by required conditions
CI / Python Bindings (maturin) (macos-latest) (push) Blocked by required conditions
CI / Python Bindings (maturin) (ubuntu-latest) (push) Blocked by required conditions
CI / WASM Build + Size Check (push) Blocked by required conditions
CI / Distributed Training Tests (push) Blocked by required conditions
CI / CI Success (push) Blocked by required conditions
CI / Clippy Check (push) Failing after 4s
Documentation / Build User Guide (push) Successful in 4s
CI / Format Check (push) Failing after 9s
Documentation / Build API Documentation (push) Failing after 14s
CI / Build (ubuntu-latest) (push) Failing after 4s
Performance Benchmarks / Run Benchmarks (push) Failing after 4s
CI / Build CPU-Only (Explicit) (push) Failing after 53s
CI / Build (macos-latest) (push) Waiting to run
CI / Test (macos-latest) (push) Blocked by required conditions
CI / Test (ubuntu-latest) (push) Blocked by required conditions
CI / Python Bindings (maturin) (macos-latest) (push) Blocked by required conditions
CI / Python Bindings (maturin) (ubuntu-latest) (push) Blocked by required conditions
CI / WASM Build + Size Check (push) Blocked by required conditions
CI / Distributed Training Tests (push) Blocked by required conditions
CI / CI Success (push) Blocked by required conditions
CI / Clippy Check (push) Failing after 4s
Documentation / Build User Guide (push) Successful in 4s
CI / Format Check (push) Failing after 9s
Documentation / Build API Documentation (push) Failing after 14s
CI / Build (ubuntu-latest) (push) Failing after 4s
Performance Benchmarks / Run Benchmarks (push) Failing after 4s
CI / Build CPU-Only (Explicit) (push) Failing after 53s
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
dbc5dbaefb
commit
3f0bd0650a
@@ -113,8 +113,13 @@ fn reading(n: usize, slope: f64, c0: f64, along_z: bool, s26: Option<bool>) -> R
|
|||||||
(s * tx, s * ty, 0.0)
|
(s * tx, s * ty, 0.0)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// `RTX_E3_OBLIQUE_DRIVE=pressure`: no body force — the sides' exact
|
||||||
|
// profile pins the flow rate and the pressure slope alone drives it.
|
||||||
|
let by_pressure = std::env::var("RTX_E3_OBLIQUE_DRIVE").is_ok_and(|v| v == "pressure");
|
||||||
solver.set_momentum_source(move |_, _, _, _| {
|
solver.set_momentum_source(move |_, _, _, _| {
|
||||||
if along_z {
|
if by_pressure {
|
||||||
|
(0.0, 0.0, 0.0)
|
||||||
|
} else if along_z {
|
||||||
(0.0, 0.0, F)
|
(0.0, 0.0, F)
|
||||||
} else {
|
} else {
|
||||||
(F * tx, F * ty, 0.0)
|
(F * tx, F * ty, 0.0)
|
||||||
|
|||||||
Reference in New Issue
Block a user