Skip to content

Commit

Permalink
[oneD] Move spreadRate to Boundary1D
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl authored and speth committed Mar 18, 2023
1 parent 4833a88 commit c58f6f7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions include/cantera/oneD/Boundary1D.h
Expand Up @@ -83,6 +83,16 @@ class Boundary1D : public Domain1D
m_mdot = mdot;
}

//! Set tangential velocity gradient [1/s] at this boundary.
virtual void setSpreadRate(double V0) {
throw NotImplementedError("Boundary1D::setSpreadRate");
}

//! Tangential velocity gradient [1/s] at this boundary.
virtual double spreadRate() {
throw NotImplementedError("Boundary1D::spreadRate");
}

//! The total mass flow rate [kg/m2/s].
virtual double mdot() {
return m_mdot;
Expand Down Expand Up @@ -129,10 +139,8 @@ class Inlet1D : public Boundary1D
return "inlet";
}

//! set spreading rate
virtual void setSpreadRate(double V0);

//! spreading rate
virtual double spreadRate() {
return m_V0;
}
Expand Down

0 comments on commit c58f6f7

Please sign in to comment.