cideMOD.models.particle_models.implicit_coupling
Classes
|
|
|
Particle Intercalation resolved with Legendre Polinomials. |
|
- class cideMOD.models.particle_models.implicit_coupling.NondimensionalSpectralModel(order)[source]
Bases:
SpectralLegendreModel
- class cideMOD.models.particle_models.implicit_coupling.SpectralLegendreModel(order)[source]
Bases:
StrongCoupledPMParticle Intercalation resolved with Legendre Polinomials. Diffusion is modeled with Fick’s law.
- build_legendre(order)[source]
Builds mass matrix, stiffness matrix and boundary vector using Legendre Polinomials. The domain used is [0,1] and only pair Legendre polinomials are used to enforce zero flux at x=0.
- Parameters:
order (int) – number of Legendre polinomials to use
- Returns:
Mass matrix, Stiffness matrix, boundary vector
- Return type:
tuple
- fields(n_mat, electrode)[source]
List of fields that will be used in the mesoscale formulation, defaults to an empty list.
- Returns:
Names of fields used
- Return type:
List
- initial_guess(f_0, electrode, c_s_ini, fs_mapper)[source]
Assign initial guess to the corresponding fields
- Parameters:
Function (Function) – Dolfin Function to assign initial values
Expression (Expression or Function) – Dolfin Expression or Function containing the initial values
- wf_0(f_0, f_1, test, electrode, dx)[source]
Weak Formulation for the initialization of the problem dc_s/dt = 0
- class cideMOD.models.particle_models.implicit_coupling.StressEnhancedSpectralModel(order)[source]
Bases:
SpectralLegendreModel- build_legendre(order)[source]
Builds mass matrix, stiffness matrix and boundary vector using Legendre Polinomials. The domain used is [0,1] and only pair Legendre polinomials are used to enforce zero flux at x=0.
- Parameters:
order (int) – number of Legendre polinomials to use
- Returns:
Mass matrix, Stiffness matrix, boundary vector
- Return type:
tuple