The Transport in Solids Interface
The Transport in Solids (ts) interface (), found under the Chemical Species Transport branch (), is used to model diffusion phenomena in a solid.
The interface supports simulation of transport by diffusion in 1D, 2D, and 3D as well as in axisymmetric components, in 1D and 2D. The default unit of the dependent variable is the molar concentration, but other units can be used, such as mass density or number density. Modeling multiple species transport is possible, whereby the physics interface solves for the selected quantity of each species.
When this physics interface is added, these default nodes are also added to the Model Builder: Solid, No Flux (prescribing no flux in the diffused variable across all external boundaries on which no other boundary condition has been specified), and Initial Values. Then, from the Physics toolbar, you can add other nodes that implement, for example, boundary conditions and source terms. You can also right-click Transport in Solids to select physics nodes from the context menu.
Settings
The Label is the default physics interface name.
The Name is used primarily as a scope prefix for variables defined by the physics interface. Refer to such physics interface variables in expressions using the pattern <name>.<variable_name>. In order to distinguish between variables belonging to different physics interfaces, the name string must be unique. Only letters, numbers, and underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first physics interface in the model) is ts.
Domain Selection
If any part of the model geometry should not partake in the diffusion model, remove that part from the selection list.
Out-of-Plane Thickness
For 2D components, the thickness field (default value: 1 m) defines a parameter for the thickness of the geometry perpendicular to the two-dimensional cross-section.
Cross-Sectional Area
For 1D components, enter a cross-sectional area Ac (SI unit: m2) to define a parameter for the area of the geometry perpendicular to the 1D component. The default value is 1 m2.
Transported Quantity
From the Transported quantity list, select Concentration, Mass density, or Number density to assign the unit for the dependent variable.
Discretization
In the Transport in Solids interface, you can choose the order of the discretization. The default is to use Quadratic shape functions.
To display other settings for this section, click the Show More Options button () and select Advanced Physics Options in the Show More Options dialog.
You can also search for information: press F1 to open the Help window or Ctrl+F1 to open the Documentation window.
The Compute boundary fluxes checkbox is activated by default so that COMSOL Multiphysics computes predefined accurate boundary flux variables. When this option is selected, the solver computes variables storing accurate boundary fluxes from each boundary into the adjacent domain.
The flux variable affected in the interface is ntflux_c, where c is the dependent variable. This is the normal total flux and corresponds to the boundary flux plus additional external flux.
Also the Apply smoothing to boundary fluxes checkbox is available if the previous checkbox is selected. The smoothing can provide a more well-behaved flux value close to singularities.
For details about the boundary fluxes settings, see Computing Accurate Fluxes in the COMSOL Multiphysics Reference Manual.
The Value type when using splitting of complex variables setting should be set to Real, which is the default.
Dependent Variables
Define the number of the dependent variables and the variable names. The default name for the transported quantity field is c by default.
Add or remove dependent variables in the model and also change their names.
Enter the Number of dependent variables. Use the Add transported quantity () and Remove transported quantity () buttons as needed.
Hydrogen Diffusion in Metals: Application Library path Structural_Mechanics_Module/Diffusion_in_Solids/hydrogen_diffusion