44 "Far field boundary condition of moving reference frame");
51 [[maybe_unused]]
int nbnd, [[maybe_unused]]
int spacedim,
52 [[maybe_unused]]
int bnddim)
53 :
StaticWall(pSession, pFields, cond, exp, nbnd, spacedim, bnddim)
57 for (
size_t i = 0; i <
m_bnddim; ++i)
59 if (cond[i]->GetUserDefined() ==
"TimeDependent")
82 if (pSession->DefinesParameter(
"TimeStep"))
84 m_dt = pSession->GetParameter(
"TimeStep");
100 std::map<std::string, NekDouble> ¶ms)
102 if (
m_BndExp.empty() || fields.size() == 0)
117 std::map<std::string, NekDouble> transParams;
118 std::vector<std::string> accStr = {
"A_x",
"A_y",
"A_z"};
120 if (params.find(
"Time") != params.end())
122 time = params[
"Time"];
124 std::vector<NekDouble> times = {time - dt2, time -
m_dt, time +
m_dt,
132 std::static_pointer_cast<
134 ->m_dirichletCondition;
135 for (
int j = 0; j < times.size(); ++j)
139 transParams[accStr[i]] = dudt;
std::map< int, MultiRegions::ExpListSharedPtr > m_BndExp
int m_bnddim
bounday dimensionality
void AddRigidBodyAcc(Array< OneD, Array< OneD, NekDouble > > &N, std::map< std::string, NekDouble > ¶ms, int npts0)
void SetNumPointsOnPlane0(int &npointsPlane0)
std::map< int, SpatialDomains::BoundaryConditionShPtr > m_BndConds
void AddVisPressureBCs(const Array< OneD, const Array< OneD, NekDouble > > &fields, Array< OneD, Array< OneD, NekDouble > > &N, std::map< std::string, NekDouble > ¶ms)
NekDouble Evaluate() const
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
void v_Initialise(const LibUtilities::SessionReaderSharedPtr &pSession) override
~TransMovingWall() override
static std::string className
TransMovingWall(const LibUtilities::SessionReaderSharedPtr pSession, Array< OneD, MultiRegions::ExpListSharedPtr > pFields, Array< OneD, SpatialDomains::BoundaryConditionShPtr > cond, Array< OneD, MultiRegions::ExpListSharedPtr > exp, int nbnd, int spacedim, int bnddim)
void v_Update(const Array< OneD, const Array< OneD, NekDouble > > &fields, const Array< OneD, const Array< OneD, NekDouble > > &Adv, std::map< std::string, NekDouble > ¶ms) override
static IncBaseConditionSharedPtr create(const LibUtilities::SessionReaderSharedPtr pSession, Array< OneD, MultiRegions::ExpListSharedPtr > pFields, Array< OneD, SpatialDomains::BoundaryConditionShPtr > cond, Array< OneD, MultiRegions::ExpListSharedPtr > exp, int nbnd, int spacedim, int bnddim)
void v_Initialise(const LibUtilities::SessionReaderSharedPtr &pSession) override
NekDouble Fourth_Coeffs[4]
std::shared_ptr< SessionReader > SessionReaderSharedPtr
IncBCFactory & GetIncBCFactory()