Skip to content

Commit

Permalink
reduce default number of substeps to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
roelof-groenewald committed Dec 12, 2023
1 parent 0c163c4 commit dda5707
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Docs/source/usage/parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2153,7 +2153,7 @@ Maxwell solver: kinetic-fluid hybrid
* ``hybrid_pic_model.n_floor`` (`float`) optional (default ``1``)
If ``algo.maxwell_solver`` is set to ``hybrid``, this sets the plasma density floor, in :math:`m^{-3}`, which is useful since the generalized Ohm's law used to calculate the E-field includes a :math:`1/n` term.

* ``hybrid_pic_model.substeps`` (`int`) optional (default ``100``)
* ``hybrid_pic_model.substeps`` (`int`) optional (default ``10``)
If ``algo.maxwell_solver`` is set to ``hybrid``, this sets the number of sub-steps to take during the B-field update.

.. note::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public:
amrex::Real dt, int lev, DtType dt_type,
amrex::IntVect ng, std::optional<bool> nodal_sync);

void BfieldPush (
void FieldPush (
amrex::Vector<std::array< std::unique_ptr<amrex::MultiFab>, 3>>& Bfield,
amrex::Vector<std::array< std::unique_ptr<amrex::MultiFab>, 3>>& Efield,
amrex::Vector<std::array< std::unique_ptr<amrex::MultiFab>, 3>> const& Jfield,
Expand Down Expand Up @@ -157,7 +157,7 @@ public:

// Declare variables to hold hybrid-PIC model parameters
/** Number of substeps to take when evolving B */
int m_substeps = 100;
int m_substeps = 10;

/** Electron temperature in eV */
amrex::Real m_elec_temp;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ void HybridPICModel::BfieldEvolveRK (

// The Runge-Kutta scheme begins here.
// Step 1:
BfieldPush(
FieldPush(
Bfield, Efield, Jfield, rhofield, edge_lengths,
0.5_rt*dt, dt_type, ng, nodal_sync
);
Expand All @@ -601,7 +601,7 @@ void HybridPICModel::BfieldEvolveRK (
}

// Step 2:
BfieldPush(
FieldPush(
Bfield, Efield, Jfield, rhofield, edge_lengths,
0.5_rt*dt, dt_type, ng, nodal_sync
);
Expand All @@ -621,7 +621,7 @@ void HybridPICModel::BfieldEvolveRK (
}

// Step 3:
BfieldPush(
FieldPush(
Bfield, Efield, Jfield, rhofield, edge_lengths,
dt, dt_type, ng, nodal_sync
);
Expand All @@ -637,7 +637,7 @@ void HybridPICModel::BfieldEvolveRK (
}

// Step 4:
BfieldPush(
FieldPush(
Bfield, Efield, Jfield, rhofield, edge_lengths,
0.5_rt*dt, dt_type, ng, nodal_sync
);
Expand Down Expand Up @@ -667,7 +667,7 @@ void HybridPICModel::BfieldEvolveRK (
}
}

void HybridPICModel::BfieldPush (
void HybridPICModel::FieldPush (
amrex::Vector<std::array< std::unique_ptr<amrex::MultiFab>, 3>>& Bfield,
amrex::Vector<std::array< std::unique_ptr<amrex::MultiFab>, 3>>& Efield,
amrex::Vector<std::array< std::unique_ptr<amrex::MultiFab>, 3>> const& Jfield,
Expand Down

0 comments on commit dda5707

Please sign in to comment.