Face object class.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=R8P), | public | :: | area | = | 0._R8P | Area. |
|
type(vector), | public | :: | normal | Normal versor. |
Overload =
.
Operator =
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(face_object), | intent(inout) | :: | lhs | Left hand side. |
||
type(face_object), | intent(in) | :: | rhs | Right hand side. |
Compute face metrics.
Compute face metrics.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(face_object), | intent(inout) | :: | self | Face. |
||
type(vector), | intent(in) | :: | pt1 | Point 1 of face. |
||
type(vector), | intent(in) | :: | pt2 | Point 2 of face. |
||
type(vector), | intent(in) | :: | pt3 | Point 3 of face. |
||
type(vector), | intent(in) | :: | pt4 | Point 4 of face. |
||
real(kind=R8P), | intent(in) | :: | signd | Sign of direction along normal coordinate. |
Destroy face.
Destroy face.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(face_object), | intent(inout) | :: | self | Face object. |
Operator =
.
Operator =
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(face_object), | intent(inout) | :: | lhs | Left hand side. |
||
type(face_object), | intent(in) | :: | rhs | Right hand side. |
Initialize face.
Initialize face.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(face_object), | intent(inout) | :: | self | Face object. |
type :: face_object
!< Face object class.
real(R8P) :: area=0._R8P !< Area.
type(vector) :: normal !< Normal versor.
contains
! public methods
procedure, pass(self) :: compute_metrics !< Compute face metrics.
procedure, pass(self) :: destroy !< Destroy face.
procedure, pass(self) :: initialize !< Initialize face.
! operators
generic :: assignment(=) => face_assign_face !< Overload `=`.
! private methods
procedure, pass(lhs) :: face_assign_face !< Operator `=`.
endtype face_object