Skip to main content

FEVariable example 43d

!!! note "" This example tests / operator. Matrix, Quadrature

Use association

  • [[FEVariable_]]

Usage

!!! note "Import modules and declare variable"

PROGRAM main
USE easifemBase
IMPLICIT NONE
TYPE(FEVariable_) :: obj

!!! note "constant / space"

  call display("=================================")
obj = QuadratureVariable( reshape(arange(1.0_DFP, 6.0_DFP), [3,2]), &
& typeFEVariableMatrix, &
& typeFEVariableConstant ) &
/ QuadratureVariable( reshape(arange(1.0_DFP, 12.0_DFP),[3,2,2]), &
& typeFEVariableMatrix, &
& typeFEVariableSpace )
CALL Display(obj, "constant / space")

!!! note "space / space"

  call display("=================================")
obj = QuadratureVariable( reshape(arange(1.0_DFP, 12.0_DFP),[3,2,2]), &
& typeFEVariableMatrix, &
& typeFEVariableSpace ) &
/ QuadratureVariable( reshape(arange(1.0_DFP, 12.0_DFP),[3,2,2]), &
& typeFEVariableMatrix, &
& typeFEVariableSpace )
CALL Display(obj, "space / space")

!!! note "constant / time"

  call display("=================================")
obj = QuadratureVariable( reshape(arange(1.0_DFP, 6.0_DFP), [3,2]), &
& typeFEVariableMatrix, &
& typeFEVariableConstant ) &
/ QuadratureVariable( reshape(arange(1.0_DFP, 12.0_DFP),[3,2,2]), &
& typeFEVariableMatrix, &
& typeFEVariableTime )
CALL Display(obj, "constant / time")

!!! note "time / time"

  call display("=================================")
obj = QuadratureVariable( reshape(arange(1.0_DFP, 12.0_DFP),[3,2,2]), &
& typeFEVariableMatrix, &
& typeFEVariableTime ) &
/ QuadratureVariable( reshape(arange(1.0_DFP, 12.0_DFP),[3,2,2]), &
& typeFEVariableMatrix, &
& typeFEVariableTime )
CALL Display(obj, "time / time")

!!! note "constant / spacetime"

  call display("=================================")
obj = QuadratureVariable( reshape(arange(1.0_DFP, 6.0_DFP), [3,2]), &
& typeFEVariableMatrix, &
& typeFEVariableConstant ) &
/ QuadratureVariable( reshape(arange(1.0_DFP, 24.0_DFP), [3,2,2,2]), &
& typeFEVariableMatrix, &
& typeFEVariableSpaceTime )
CALL Display(obj, "constant / spacetime")

!!! note "spacetime / spacetime"

  call display("=================================")
obj = QuadratureVariable( reshape(arange(1.0_DFP, 24.0_DFP), [3,2,2,2]), &
& typeFEVariableMatrix, &
& typeFEVariableSpaceTime ) &
/ QuadratureVariable( reshape(arange(1.0_DFP, 24.0_DFP), [3,2,2,2]), &
& typeFEVariableMatrix, &
& typeFEVariableSpaceTime )
CALL Display(obj, "spacetime / spacetime")
END PROGRAM main