Skip to main content

Get

Get entries from vector field.

Calling example:

Interface 1

INTERFACE
MODULE SUBROUTINE stvField_get1(obj, VALUE, globalNode, spaceCompo, &
& timeCompo)
CLASS(STVectorField_), INTENT(IN) :: obj
REAL(DFP), ALLOCATABLE, INTENT(INOUT) :: VALUE(:)
INTEGER(I4B), OPTIONAL, INTENT(IN) :: globalNode
INTEGER(I4B), OPTIONAL, INTENT(IN) :: spaceCompo
INTEGER(I4B), OPTIONAL, INTENT(IN) :: timeCompo
END SUBROUTINE stvField_get1
END INTERFACE
  • If globalnode is present then this routine returns the space-time values at the globalnode. Note that the returned values are stored in value in NODES_FMT format. You can get the space-time nodal values by reshaping value, that is, reshape(value, [spaceCompo, timeCompo]).

  • If spaceCompo and timeCompo are present, then this routine returns all the nodal values of specified space-time component. The size of value will be tNodes.

  • If spaceCompo is present and timeCompo is not present, then this routine returns nodal values of all time components in value. The data is stored in NODES_FMT. Therefore, by reshaping value as reshape(value, [timeCompo, tNodes]) you can retrive data.

  • If timeCompo is present and spaceCompo is not present, then this routine returns nodal values of all space components in value. The data is stored in NODES_FMT. Therefore, by reshaping value as reshape(value, [spaceCompo, tNodes]) you can retrive data.

Interface 2

INTERFACE
MODULE SUBROUTINE stvField_get2(obj, VALUE)
CLASS(STVectorField_), INTENT(IN) :: obj
REAL(DFP), ALLOCATABLE, INTENT(INOUT) :: VALUE(:, :, :)
END SUBROUTINE stvField_get2
END INTERFACE
  • This routine returns all nodal values of all space-time components.
  • The shape of value is (spaceCompo, timeCompo, tNodes).

Interface 3

INTERFACE
MODULE SUBROUTINE stvField_get3(obj, VALUE, globalNode)
CLASS(STVectorField_), INTENT(IN) :: obj
REAL(DFP), ALLOCATABLE, INTENT(INOUT) :: VALUE(:, :, :)
INTEGER(I4B), INTENT(IN) :: globalNode(:)
END SUBROUTINE stvField_get3
END INTERFACE
  • This routine returns space-time nodal values of global nodes
  • The shape of value is (spaceCompo, timeCompo, size(globalNode))

Interface 4

INTERFACE
MODULE SUBROUTINE stvField_get4(obj, VALUE, globalNode, spaceCompo, &
& timeCompo)
CLASS(STVectorField_), INTENT(IN) :: obj
REAL(DFP), ALLOCATABLE, INTENT(INOUT) :: VALUE(:)
INTEGER(I4B), INTENT(IN) :: globalNode(:)
INTEGER(I4B), INTENT(IN) :: spaceCompo
INTEGER(I4B), INTENT(IN) :: timeCompo
END SUBROUTINE stvField_get4
END INTERFACE
  • This method returns the nodal value of a given space-time component.
  • The size of value is same as the size of globalNode.

Interface 5

INTERFACE
MODULE SUBROUTINE stvField_get5(obj, VALUE, globalNode, spaceCompo, &
& timeCompo)
CLASS(STVectorField_), INTENT(IN) :: obj
REAL(DFP), INTENT(INOUT) :: VALUE
INTEGER(I4B), INTENT(IN) :: globalNode
INTEGER(I4B), INTENT(IN) :: spaceCompo
INTEGER(I4B), INTENT(IN) :: timeCompo
END SUBROUTINE stvField_get5
END INTERFACE
  • This method returns a single entry of a space-time component at a given node.

Interface 6

INTERFACE
MODULE SUBROUTINE stvField_get6(obj, VALUE, istart, iend, stride)
CLASS(STVectorField_), INTENT(IN) :: obj
REAL(DFP), ALLOCATABLE, INTENT(INOUT) :: VALUE(:, :, :)
INTEGER(I4B), INTENT(IN) :: istart
INTEGER(I4B), INTENT(IN) :: iend
INTEGER(I4B), INTENT(IN) :: stride
END SUBROUTINE stvField_get6
END INTERFACE
  • This routine returns space-time nodal values at multiple nodes.

Interface 7

INTERFACE
MODULE SUBROUTINE stvField_get7(obj, VALUE, istart, iend, stride, &
& spaceCompo, timeCompo)
CLASS(STVectorField_), INTENT(IN) :: obj
REAL(DFP), ALLOCATABLE, INTENT(INOUT) :: VALUE(:)
INTEGER(I4B), INTENT(IN) :: istart
INTEGER(I4B), INTENT(IN) :: iend
INTEGER(I4B), INTENT(IN) :: stride
INTEGER(I4B), INTENT(IN) :: spaceCompo
INTEGER(I4B), INTENT(IN) :: timeCompo
END SUBROUTINE stvField_get7
END INTERFACE
  • This routine returns the nodal values of specified space-time component
  • Node numbers are specified by triplets

Interface 8

INTERFACE
MODULE SUBROUTINE stvField_get8(obj, VALUE, globalNode)
CLASS(STVectorField_), INTENT(IN) :: obj
REAL(DFP), ALLOCATABLE, INTENT(INOUT) :: VALUE(:, :)
INTEGER(I4B), INTENT(IN) :: globalNode
END SUBROUTINE stvField_get8
END INTERFACE
  • This method returns the space-time nodal value at a given node.
  • The shape of value is (spaceCompo, timeCompo).

Interface 9

INTERFACE
MODULE SUBROUTINE stvField_get9(obj, VALUE, globalNode)
CLASS(STVectorField_), INTENT(IN) :: obj
TYPE(FEVariable_), INTENT(INOUT) :: VALUE
INTEGER(I4B), INTENT(IN) :: globalNode(:)
END SUBROUTINE stvField_get9
END INTERFACE
  • This routine returns space-time nodal value of specified nodes in FEVariable.
  • value is FEVariable of SpaceTime type.

Interface 10

INTERFACE
MODULE SUBROUTINE stvField_get10(obj, VALUE, spaceCompo, timeCompo)
CLASS(STVectorField_), INTENT(IN) :: obj
CLASS(AbstractNodeField_), INTENT(INOUT) :: VALUE
INTEGER(I4B), OPTIONAL, INTENT(IN) :: spaceCompo
INTEGER(I4B), OPTIONAL, INTENT(IN) :: timeCompo
END SUBROUTINE stvField_get10
END INTERFACE
  • This method returns the space component as an instance of AbstractNodeField.