Difference between revisions of "Diffusion Calculations"

From OSUPDOCS
Jump to navigation Jump to search
Line 33: Line 33:


     
     
<math>\Delta\varepsilon = \beta(c-c_0) = \beta c_{ref}(\bar{c}-\bar{c}_0)
<math>\Delta\varepsilon = \beta(c-c_0) = \beta c_{ref}(\bar{c}-\bar{c}_0)</math>


where <math>\bar{c}_0</math> is the stress-free concentration potential. It is the potential at which a material point would have zero strain. Each simulation can pick an non-negative <math>\bar{c}_0</math>. Any material points that do not specify a different concentration will be set to potential <math>\bar{c}_0</math>. But note that if a material point starts on a different potential, the first time step will see an incremental strain of
where <math>\bar{c}_0</math> is the stress-free concentration potential. It is the potential at which a material point would have zero strain. Each simulation can pick an non-negative <math>\bar{c}_0</math>. Any material points that do not specify a different concentration will be set to potential <math>\bar{c}_0</math>. But note that if a material point starts on a different potential, the first time step will see an incremental strain of


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<math>d\varepsilon = \beta c_{ref}(\bar{c}-\bar{c}_0)
<math>d\varepsilon = \beta c_{ref}(\bar{c}-\bar{c}_0)</math>


which couple potential be a large strain that acts like a impact to the material point. It is usually better to start all material points at <math>\bar{c}_0</math> and let them naturally develop swelling strains by diffusion from boundary conditions are ramping them up with a property ramp.
which couple potential be a large strain that acts like a impact to the material point. It is usually better to start all material points at <math>\bar{c}_0</math> and let them naturally develop swelling strains by diffusion from boundary conditions are ramping them up with a property ramp.

Revision as of 10:17, 4 March 2023

NairnMPM can do diffusion calculations coupled with stresses and strains through concentration-induced expansion.

Diffusion Modeling

To be able to model diffusion in composite materials where different phases may absorb different amounts of solvent, all diffusion calculations are done in terms of a concentration potential for the solvent in the material. Diffusion, as derived by mass flow, can be written as:

      [math]\displaystyle{ {\partial c\over \partial t} = - \nabla \cdot J = \nabla \cdot \left({Dc\over RT} \nabla \mu\right) }[/math]

where c is concentration (e.g., moles per unit volume) and J is flux given by minus the bracketed term where D is the diffusion coefficient (in area/sec), μ is the chemical potential (in J/mol), R gas constant (in J/(mol-K)), and T is temperature. This modeling writes the chemical potential is terms of a concentration potential

      [math]\displaystyle{ \mu = \mu^{(ref)} + RT \ln \bar{c} \qquad {\rm where} \qquad \bar{c} = \frac{c}{c_{ref}} }[/math]

is a concentration potential. Here [math]\displaystyle{ \mu^{(ref)} }[/math] is reference chemical potential when [math]\displaystyle{ c=c_{ref} }[/math]. Taking gradient of the chemical potential and substituting into the diffusion equation leads to

      [math]\displaystyle{ {\partial \bar{c}\over \partial t} = \nabla \cdot D \nabla \bar{c} }[/math]

Because [math]\displaystyle{ \bar{c} }[/math] is dimensionless, it can be defined using any consistent units for [math]\displaystyle{ c }[/math] and [math]\displaystyle{ c_{ref} }[/math]. When modeling composite materials, [math]\displaystyle{ c_{ref} }[/math] is a material property. Thermodynamic equilibrium in composites is when all phases reach the same chemical potential. The goal of diffusion modeling is pick [math]\displaystyle{ c_{ref} }[/math] for each material such that all materials have the same [math]\displaystyle{ \mu^{(ref)} }[/math].

One [math]\displaystyle{ c=c_{ref} }[/math] is picked for each material, all internal calculations are done using [math]\displaystyle{ \bar{c} }[/math]. Furthermore, concentration boundary conditions are expected to be in terms of dimensionless [math]\displaystyle{ \bar{c} }[/math] instead of terms raw concentration.

Reference and Saturation Concentration

The initial implementation of diffusion in NairnMPM was to model diffusion of solvents into solids including expansion due to solvent (e.g., swelling of wood due to moisture constant). Most results for such solvent effects are based on mass fraction solvent content and expansion coefficients are measured as swelling strain per weight fracture solvent. As a result, NairnMPM assumes [math]\displaystyle{ c }[/math] and [math]\displaystyle{ c_{ref} }[/math] are both mass fraction solvent and the reference state is set to the saturation limit for solvent content or [math]\displaystyle{ c_{sat} }[/math] (which is specified for each material type in basic material properties). By this model, concentration can never exceed saturation concentration meaning that the concentration potential is restricted to the interval [0,1] and equilibrium conditions correspond to all particles being at the same concentration potential (i.e., at the same fracture of their saturation concentration).

The saturation model if the default methods for diffusion calculations, that can be change by redefining [math]\displaystyle{ c_{ref} }[/math] with any other units. For example, one could model concentration in moles per unit volume (molar concentration). This model still uses concentration potential but the potential can now exceed 1 or can have an non-negative value. For this approach to work in composites, [math]\displaystyle{ c_{ref} }[/math] can be any state but each material must pick [math]\displaystyle{ c_{ref} }[/math] such that all material have the same chemical potential at the concentration. The values like different with material type. Note that despite this change in meaning of [math]\displaystyle{ c_{ref} }[/math], it is still entered using the csat material property.

Stress-Free Concentration

Diffusion effects are coupled to mechanics by changes in concentration causing shrinking or swelling resulting in changes in strain. Linear swelling is modeled as

      [math]\displaystyle{ \Delta\varepsilon = \beta(c-c_0) = \beta c_{ref}(\bar{c}-\bar{c}_0) }[/math]

where [math]\displaystyle{ \bar{c}_0 }[/math] is the stress-free concentration potential. It is the potential at which a material point would have zero strain. Each simulation can pick an non-negative [math]\displaystyle{ \bar{c}_0 }[/math]. Any material points that do not specify a different concentration will be set to potential [math]\displaystyle{ \bar{c}_0 }[/math]. But note that if a material point starts on a different potential, the first time step will see an incremental strain of

      [math]\displaystyle{ d\varepsilon = \beta c_{ref}(\bar{c}-\bar{c}_0) }[/math]

which couple potential be a large strain that acts like a impact to the material point. It is usually better to start all material points at [math]\displaystyle{ \bar{c}_0 }[/math] and let them naturally develop swelling strains by diffusion from boundary conditions are ramping them up with a property ramp.

Activating Diffusion

In scripted files, diffusion is activated with the command

Diffusion (YesOrNo),<(conc0)>

In XML input files, diffusion is activated with the <Diffusion> command, which must be within the <MPMHeader> element:

<Diffusion reference = '(conc0)'/>

where

  • (YesOrNo) must be "Yes" or "No" to activate or not activate diffusion calculations. In XML input files, the presence of a <Diffusion> command activates diffusion. The default is "No".
  • (conc0) is used to set a concentration potential (between 0 and 1) that corresponds to zero strain. All diffusion calculations are done in terms of a concentration potential from 0 to 1 where 1 is the saturation concentration of a material type. Changes fromm (conc0), either in initial particle concentrations or as a result of diffusion, will cause volume changes depending on expansion properties defined for materials. The default (conc0) is 0.

By default, diffusion uses update methods analogous to FLIP methods used in mechanics. This update, however, sometimes results in concentration oscillations on particles within one cell. Diffusion simulations with oscillations can be improved by using periodic FMPM(k) for diffusion updates.

Note that diffusion models fluid transport through materials by transport methods nearly identical to those used to model poroelasticity. Because they share same methods, a simulation can activate diffusion (with above commands) or poroelasticity (with comparable Poroelasticity commands), but cannot activate them both. Any simulation, however, can combine diffusion or poroelasticity with thermal calculations and conduction. Note that when choosing archiving options, the terms "concentration" and "porepressure" are synonyms or either can be used and the archiving will store concentration terms for diffusion calculations or pore pressure terms for poroelasticity calculations.

Diffusion Material Properties

Concencentration changes are coupled to stress and strains through concentration expansion coefficients defined for the materials. By default, all moisture expansion coefficients are zero which decouples diffusion and strains. By entering non-zero values, the coupling will occur. Isotropic materials have a single solvent expansion coefficient (beta) while anisotropic materials will have two or three solvent expansion coefficients for swelling differently in different directions (e.g., see orthotropic materials).

The rate of diffusion is controlled by the solvent diffusion constant defined for each material. Isotropic materials have a single solvent diffusion constant, D, as defined above (and entered as property D). For anisotropic materials, D is replaced by a diffusion tensor and material properties set two or three diffusion properties for diffusion in various material directions (e.g., see orthotropic materials).

Archived Concentrations

All internal calculations use [math]\displaystyle{ \bar{c} }[/math] or concentration potential, but when concentrations and concentration gradients are archived, they are converted to assume concentration in weight fraction using the material's saturation concentration setting:

      [math]\displaystyle{ c = c_{sat}\bar{c} }[/math]

This conversion applies both to particle archives and to global archiving.

Diffusion Boundary Conditions

When diffusion is activated, you can set, the possible concentration boundary conditions are: