NDSolve`FEM`
NDSolve`FEM`

PDECoefficientData

PDECoefficientData[]

represents data that is used for discretizing partial differential equations.

Details and Options

  • PDECoefficientData[] is created by InitializePDECoefficients.
  • PDECoefficientData[] can be extracted from NDSolve`StateData objects generated by NDSolve`ProcessEquations using the "FiniteElementData" and "InitializedPDECoefficients" properties.
  • In standard output format, the number of dependent variables and the space dimension are shown.
  • PDECoefficientData[] objects are used as input for DiscretizePDE.
  • PDECoefficientData[][prop] gives the property prop of the PDECoefficientData object. The following properties may be given:
  • "All"gives all the coefficients in a raw form
    "ConservativeConvectionCoefficients"gives the conservative convection coefficients
    "Constraints"lists constraints induced by PDE coefficients
    "ConvectionCoefficients"gives the convection coefficients
    "DampingDiffusionCoefficients"gives the damping diffusion coefficients
    "DampingConservativeConvectionCoefficients"gives the damping conservative convection coefficients
    "DampingConvectionCoefficients"gives the damping convection coefficients
    "DampingReactionCoefficients"gives the damping reaction coefficients
    "DiffusionCoefficients"gives the diffusion coefficients
    "Discrete"extracts stationary discrete coefficients
    "IndexedDiscrete"extracts stationary indexed discrete coefficients
    "LoadCoefficients"gives the load coefficients
    "LoadDerivativeCoefficients"gives the load derivative coefficients
    "MassDiffusionCoefficients"gives the mass diffusion coefficients
    "MassConservativeConvectionCoefficients"gives the mass conservative convection coefficients
    "MassConvectionCoefficients"gives the mass convection coefficients
    "MassReactionCoefficients"gives the mass reaction coefficients
    "Nonlinear"extracts nonlinear coefficients
    "Parametric"extracts stationary parametric coefficients
    "Properties"gives the properties
    "ReactionCoefficients"gives the reaction coefficients
    "SpatialDimension"gives the space dimensions
    "Stationary"extracts stationary coefficients
    "SystemSize"gives the number of PDEs
    "Transient"extracts transient coefficients
  • The relation of the PDE coefficient names to the model PDE is described in InitializePDECoefficients.

Examples

open allclose all

Basic Examples  (1)

Load the finite element package:

Set up a NumericalRegion:

Set up variable and solution data:

Specify a Poisson equation as coefficients:

Scope  (20)

"All"  (1)

Extract all the PDE coefficients:

"ConservativeConvectionCoefficients"  (1)

Extract the conservative convection PDE coefficients:

"Constraints"  (1)

Extract constraints induced by PDE coefficients:

"ConvectionCoefficients"  (1)

Extract the convection PDE coefficients:

"DampingCoefficients"  (1)

Extract the damping PDE coefficients:

"DiffusionCoefficients"  (1)

Extract the diffusion PDE coefficients:

"LoadCoefficients"  (1)

Extract the load PDE coefficients:

"LoadDerivativeCoefficients"  (1)

Extract the load derivative PDE coefficients:

"MassCoefficients"  (1)

Extract the mass PDE coefficients:

"Nonlinear"  (1)

Extract the positions of nonlinear PDE coefficients:

"ReactionCoefficients"  (1)

Extract the reaction PDE coefficients:

"SpatialDimension"  (1)

Extract the spatial dimension:

"Stationary"  (3)

Extract the positions of stationary PDE coefficients:

Extract the scalar-valued stationary PDE coefficients:

Extract the matrix-valued stationary PDE coefficients:

"Parametric"  (1)

Parametric coefficients depend on parameters that need to be replaced with specific values before integrating typically through ParametricNDSolve.

In this example, there are no parametric coefficients:

"SystemSize"  (1)

Extract the system size:

The system size is essentially the number of dependent variables.

"Transient"  (3)

Extract the scalar-valued transient PDE coefficients:

Extract the matrix-valued transient PDE coefficients:

Properties & Relations  (1)

Extract the state data from the NDSolve`StateData object:

Extract the initialized PDE coefficients from the NDSolve`StateData object:

Possible Issues  (2)

To accommodate Neumann values, the "DiffusionCoefficients", the "ConservativeConvectionCoefficients", and the "LoadDerivativeCoefficients" are stored with a negative sign when extracted with the "All" property:

To extract the "DiffusionCoefficients", the "ConservativeConvectionCoefficients" and the "LoadDerivativeCoefficients" with the specified sign use:

The multiplicative factor f in front of the Laplacian is processed into a diffusion coefficient c in .(c u). When f is not a constant setting, c=f introduces an additional divergence that needs to be compensated:

Inspect the PDE coefficients. Note the compensating convection term:

Computing the divergence of the factor f that needs to be compensated:

Wolfram Research (2014), PDECoefficientData, Wolfram Language function, https://reference.wolfram.com/language/FEMDocumentation/ref/PDECoefficientData.html (updated 2024).

Text

Wolfram Research (2014), PDECoefficientData, Wolfram Language function, https://reference.wolfram.com/language/FEMDocumentation/ref/PDECoefficientData.html (updated 2024).

CMS

Wolfram Language. 2014. "PDECoefficientData." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/FEMDocumentation/ref/PDECoefficientData.html.

APA

Wolfram Language. (2014). PDECoefficientData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/FEMDocumentation/ref/PDECoefficientData.html

BibTeX

@misc{reference.wolfram_2024_pdecoefficientdata, author="Wolfram Research", title="{PDECoefficientData}", year="2024", howpublished="\url{https://reference.wolfram.com/language/FEMDocumentation/ref/PDECoefficientData.html}", note=[Accessed: 30-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_pdecoefficientdata, organization={Wolfram Research}, title={PDECoefficientData}, year={2024}, url={https://reference.wolfram.com/language/FEMDocumentation/ref/PDECoefficientData.html}, note=[Accessed: 30-December-2024 ]}