Skip to content

Commit 8f06e22

Browse files
committed
address comments
1 parent 1a16ed2 commit 8f06e22

File tree

2 files changed

+63
-64
lines changed

2 files changed

+63
-64
lines changed

include/aspect/material_model/rheology/composite_visco_plastic.h

+62-63
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,68 @@ namespace aspect
128128
const std::vector<double> &phase_function_values = std::vector<double>(),
129129
const std::vector<unsigned int> &n_phase_transitions_per_composition = std::vector<unsigned int>()) const;
130130

131+
/**
132+
* Create the two additional material model output objects that contain the
133+
* elastic shear moduli, elastic viscosity, ratio of computational to elastic timestep,
134+
* and deviatoric stress of the current timestep and the reaction rates.
135+
*/
136+
/*
137+
void
138+
create_elastic_additional_outputs (MaterialModel::MaterialModelOutputs<dim> &out) const;
139+
*/
140+
141+
/**
142+
* Given the stress of the previous time step in the material model inputs @p in,
143+
* the elastic shear moduli @p average_elastic_shear_moduli at each point,
144+
* and the (viscous) viscosities given in the material model outputs object @p out,
145+
* fill a material model outputs objects with the elastic force terms, viscoelastic
146+
* strain rate and viscous dissipation.
147+
*/
148+
/*
149+
void
150+
fill_elastic_outputs (const MaterialModel::MaterialModelInputs<dim> &in,
151+
const std::vector<double> &average_elastic_shear_moduli,
152+
MaterialModel::MaterialModelOutputs<dim> &out) const;
153+
*/
154+
155+
/**
156+
* Given the stress of the previous time step in the material model inputs @p in,
157+
* the elastic shear moduli @p average_elastic_shear_moduli at each point,
158+
* and the (viscous) viscosities given in the material model outputs object @p out,
159+
* fill a material model outputs (ElasticAdditionalOutputs) object with the
160+
* average shear modulus, elastic viscosity, and the deviatoric stress of the current timestep.
161+
*/
162+
/*
163+
void
164+
fill_elastic_additional_outputs (const MaterialModel::MaterialModelInputs<dim> &in,
165+
const std::vector<double> &average_elastic_shear_moduli,
166+
MaterialModel::MaterialModelOutputs<dim> &out) const;
167+
*/
168+
169+
/**
170+
* Given the stress of the previous time step in the material model inputs @p in,
171+
* the elastic shear moduli @p average_elastic_shear_moduli at each point,
172+
* and the (viscous) viscosities given in the material model outputs object @p out,
173+
* compute an update to the elastic stresses and use it to fill the reaction terms
174+
* material model output property.
175+
*/
176+
void
177+
fill_reaction_outputs (const MaterialModel::MaterialModelInputs<dim> &in,
178+
const std::vector<double> &average_elastic_shear_moduli,
179+
MaterialModel::MaterialModelOutputs<dim> &out) const;
180+
181+
/**
182+
* Given the stress of the previous time step in the material model inputs @p in,
183+
* the elastic shear moduli @p average_elastic_shear_moduli at each point,
184+
* and the (viscous) viscosities given in the material model outputs object @p out,
185+
* compute the update to the elastic stresses of the previous timestep and use it
186+
* to fill the reaction rates material model output property.
187+
*/
188+
void
189+
fill_reaction_rates (const MaterialModel::MaterialModelInputs<dim> &in,
190+
const std::vector<double> &average_elastic_shear_moduli,
191+
MaterialModel::MaterialModelOutputs<dim> &out) const;
192+
131193
private:
132194
/**
133195
* Compute the isostress viscosity over all compositional fields
@@ -207,69 +269,6 @@ namespace aspect
207269
const double viscoplastic_stress,
208270
std::vector<double> &partial_strain_rates) const;
209271

210-
/**
211-
* Create the two additional material model output objects that contain the
212-
* elastic shear moduli, elastic viscosity, ratio of computational to elastic timestep,
213-
* and deviatoric stress of the current timestep and the reaction rates.
214-
*/
215-
/*
216-
void
217-
create_elastic_additional_outputs (MaterialModel::MaterialModelOutputs<dim> &out) const;
218-
*/
219-
220-
/**
221-
* Given the stress of the previous time step in the material model inputs @p in,
222-
* the elastic shear moduli @p average_elastic_shear_moduli at each point,
223-
* and the (viscous) viscosities given in the material model outputs object @p out,
224-
* fill a material model outputs objects with the elastic force terms, viscoelastic
225-
* strain rate and viscous dissipation.
226-
*/
227-
/*
228-
void
229-
fill_elastic_outputs (const MaterialModel::MaterialModelInputs<dim> &in,
230-
const std::vector<double> &average_elastic_shear_moduli,
231-
MaterialModel::MaterialModelOutputs<dim> &out) const;
232-
*/
233-
234-
/**
235-
* Given the stress of the previous time step in the material model inputs @p in,
236-
* the elastic shear moduli @p average_elastic_shear_moduli at each point,
237-
* and the (viscous) viscosities given in the material model outputs object @p out,
238-
* fill a material model outputs (ElasticAdditionalOutputs) object with the
239-
* average shear modulus, elastic viscosity, and the deviatoric stress of the current timestep.
240-
*/
241-
/*
242-
void
243-
fill_elastic_additional_outputs (const MaterialModel::MaterialModelInputs<dim> &in,
244-
const std::vector<double> &average_elastic_shear_moduli,
245-
MaterialModel::MaterialModelOutputs<dim> &out) const;
246-
*/
247-
248-
/**
249-
* Given the stress of the previous time step in the material model inputs @p in,
250-
* the elastic shear moduli @p average_elastic_shear_moduli at each point,
251-
* and the (viscous) viscosities given in the material model outputs object @p out,
252-
* compute an update to the elastic stresses and use it to fill the reaction terms
253-
* material model output property.
254-
*/
255-
void
256-
fill_reaction_outputs (const MaterialModel::MaterialModelInputs<dim> &in,
257-
const std::vector<double> &average_elastic_shear_moduli,
258-
MaterialModel::MaterialModelOutputs<dim> &out) const;
259-
260-
/**
261-
* Given the stress of the previous time step in the material model inputs @p in,
262-
* the elastic shear moduli @p average_elastic_shear_moduli at each point,
263-
* and the (viscous) viscosities given in the material model outputs object @p out,
264-
* compute the update to the elastic stresses of the previous timestep and use it
265-
* to fill the reaction rates material model output property.
266-
*/
267-
void
268-
fill_reaction_rates (const MaterialModel::MaterialModelInputs<dim> &in,
269-
const std::vector<double> &average_elastic_shear_moduli,
270-
MaterialModel::MaterialModelOutputs<dim> &out) const;
271-
272-
private:
273272
/**
274273
* Enumeration for selecting which type of viscosity averaging to use.
275274
*/

source/material_model/rheology/composite_visco_plastic.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ namespace aspect
831831
// In case the computational timestep differs from the elastic timestep,
832832
// linearly interpolate between the two.
833833
// The elastic viscosity has also already been scaled with the timestep ratio.
834-
const double viscosity_ratio = effective_creep_viscosity / inverse_kelvin_viscosities[i];
834+
const double viscosity_ratio = effective_creep_viscosity * inverse_kelvin_viscosities[i];
835835
836836
if (elastic_out != nullptr)
837837
{

0 commit comments

Comments
 (0)