pub enum BoundaryCondition<T: Clone> {
FixedValue(T),
FixedField(Field<T>),
ZeroGradient,
Symmetry,
Empty,
Calculated(Field<T>),
}Expand description
Boundary condition variant for a single patch.
Covers the BC types required by the target solvers. More exotic types (inlet-outlet, total pressure, etc.) will be added when Layer 3 is implemented.
Variants§
FixedValue(T)
Dirichlet: fixed uniform value.
FixedField(Field<T>)
Dirichlet: fixed per-face values.
ZeroGradient
Neumann: zero normal gradient — boundary face value = internal adjacent value.
Symmetry
Symmetry plane — normal component zeroed.
Empty
2-D / wedge — zero-area faces; value has no physical meaning.
Calculated(Field<T>)
Value computed by the solver and stored here (read-only from BC side).
Implementations§
Source§impl<T: Clone + Default> BoundaryCondition<T>
impl<T: Clone + Default> BoundaryCondition<T>
Sourcepub fn is_fixed_value(&self) -> bool
pub fn is_fixed_value(&self) -> bool
True if the BC imposes a value (Dirichlet-like).
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for BoundaryCondition<T>where
T: Freeze,
impl<T> RefUnwindSafe for BoundaryCondition<T>where
T: RefUnwindSafe,
impl<T> Send for BoundaryCondition<T>where
T: Send,
impl<T> Sync for BoundaryCondition<T>where
T: Sync,
impl<T> Unpin for BoundaryCondition<T>where
T: Unpin,
impl<T> UnsafeUnpin for BoundaryCondition<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for BoundaryCondition<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more