Skip to content
Snippets Groups Projects
Commit dffc636b authored by wenqing's avatar wenqing
Browse files

[LiquidFlow] Removed the old gravity parameters

parent a8293927
No related branches found
No related tags found
No related merge requests found
......@@ -98,16 +98,6 @@ std::unique_ptr<Process> createLiquidFlowProcess(
std::copy_n(b.data(), b.size(), specific_body_force.data());
}
int gravity_axis_id = -1; // default: no gravity
double const g = -b[mesh.getDimension() - 1];
if (has_gravity)
{
if (g != 0.0)
{
gravity_axis_id = mesh.getDimension() - 1;
}
}
std::unique_ptr<ProcessLib::SurfaceFluxData> surfaceflux;
auto calculatesurfaceflux_config =
//! \ogs_file_param{prj__processes__process__calculatesurfaceflux}
......@@ -126,8 +116,7 @@ std::unique_ptr<Process> createLiquidFlowProcess(
DBUG("Media properties verified.");
LiquidFlowData process_data{std::move(media_map),
std::move(specific_body_force), has_gravity,
gravity_axis_id, g};
std::move(specific_body_force), has_gravity};
return std::make_unique<LiquidFlowProcess>(
std::move(name), mesh, std::move(jacobian_assembler), parameters,
......
......@@ -28,9 +28,6 @@ struct LiquidFlowData final
media_map;
Eigen::VectorXd const specific_body_force;
bool const has_gravity;
const int gravitational_axis_id;
const double gravitational_acceleration;
};
} // namespace LiquidFlow
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment