wheatClass Module



Derived Types

type, public ::  wheat_internode_info_

Components

Type Visibility Attributes Name Initial
real(kind=real64), public, allocatable :: FinalInterNodeLength(:)
real(kind=real64), public, allocatable :: FinalPetioleLength(:)
real(kind=real64), public, allocatable :: FinalLeafLength(:)
real(kind=real64), public, allocatable :: FinalLeafWidth(:)

type, public ::  wheat_NodeID_Branch_

Components

Type Visibility Attributes Name Initial
integer(kind=int32), public, allocatable :: ID(:)

type, public ::  wheat_

Components

Type Visibility Attributes Name Initial
integer(kind=int32), public :: TYPE_STEM = 1
integer(kind=int32), public :: TYPE_LEAF = 2
integer(kind=int32), public :: TYPE_ROOT = 3
integer(kind=int32), public :: TYPE_PANICLE = 4
type(Mesh_), public :: struct
integer(kind=int32), public, allocatable :: leaf2stem(:,:)
integer(kind=int32), public, allocatable :: stem2stem(:,:)
integer(kind=int32), public, allocatable :: panicle2stem(:,:)
integer(kind=int32), public, allocatable :: root2stem(:,:)
integer(kind=int32), public, allocatable :: root2root(:,:)
real(kind=real64), public :: mainstem_length
real(kind=real64), public :: mainstem_width
integer(kind=int32), public :: mainstem_node
real(kind=real64), public :: mainroot_length
real(kind=real64), public :: mainroot_width
integer(kind=int32), public :: mainroot_node
integer(kind=int32), public :: num_branch_root
integer(kind=int32), public :: num_branch_root_node
real(kind=real64), public :: ms_angle_ave = 0.0d0
real(kind=real64), public :: ms_angle_sig = 0.0d0
integer(kind=int32), public, allocatable :: Leaf_From(:)
real(kind=real64), public, allocatable :: leaf_curvature(:)
real(kind=real64), public, allocatable :: leaf_thickness_ave(:)
real(kind=real64), public, allocatable :: leaf_thickness_sig(:)
real(kind=real64), public, allocatable :: leaf_angle_ave_x(:)
real(kind=real64), public, allocatable :: leaf_angle_sig_x(:)
real(kind=real64), public, allocatable :: leaf_angle_ave_z(:)
real(kind=real64), public, allocatable :: leaf_angle_sig_z(:)
real(kind=real64), public, allocatable :: leaf_length_ave(:)
real(kind=real64), public, allocatable :: leaf_length_sig(:)
real(kind=real64), public, allocatable :: leaf_width_ave(:)
real(kind=real64), public, allocatable :: leaf_width_sig(:)
integer(kind=int32), public :: num_leaf
integer(kind=int32), public :: num_stem
integer(kind=int32), public :: num_panicle = 1
integer(kind=int32), public :: num_root
integer(kind=int32), public :: wheat_panicle_seed_division(1:3) = [3, 3, 3]
type(FEMDomain_), public, allocatable :: leaf_list(:)
type(FEMDomain_), public, allocatable :: stem_list(:)
type(FEMDomain_), public, allocatable :: root_list(:)
character(len=:), public, allocatable :: LeafSurfaceData
type(Leaf_), public, allocatable :: Leaf(:)
type(Stem_), public, allocatable :: Stem(:)
type(Panicle_), public, allocatable :: Panicle(:)
type(Root_), public, allocatable :: Root(:)
integer(kind=int32), public, allocatable :: NodeID_MainStem(:)
type(wheat_NodeID_Branch_), public, allocatable :: NodeID_Branch(:)
logical, public :: inLoop = .false.
real(kind=real64), public :: hours = 0.0d0
real(kind=real64), public :: FullyExpanded_stem_threshold = 0.10d0
integer(kind=int32), public :: MaxBranchNum = 20
type(wheat_internode_info_), public, allocatable :: InterNodeInfo(:)
real(kind=real64), public :: default_Leaf_growth_ratio = 1.0d0/3.0d0
real(kind=real64), public :: default_Stem_growth_ratio = 1.0d0/3.0d0
integer(kind=int32), public, allocatable :: MainStem_num_branch(:)
real(kind=real64), public :: apical_dominance_distance = 1.0d0
type(ContactMechanics_), public :: contact
real(kind=real64), public :: Gravity_acceralation = 9.810d0
real(kind=real64), public :: PenaltyParameter = 100000.0d0
logical, public :: GaussPointProjection = .false.
integer(kind=int32), public :: stem_division(1:3) = [10, 10, 10]
integer(kind=int32), public :: leaf_division(1:3) = [10, 10, 10]
integer(kind=int32), public :: panicle_division(1:3) = [2, 2, 300]

Type-Bound Procedures

procedure, public :: init => createwheat
procedure, public :: create => createwheat
procedure, public :: msh => mshwheat
procedure, public :: vtk => vtkwheat
procedure, public :: stl => stlwheat
procedure, public :: json => jsonwheat
procedure, public :: update => updatewheat
procedure, public :: remove => removewheat
procedure, public :: rotate => rotatewheat
procedure, public :: move => movewheat
procedure, public :: getElementList => getElementListwheat
procedure, public :: ns => nswheat
procedure, public :: ne => newheat
procedure, public :: nn => nnwheat
procedure, public :: checkMemoryRequirement => checkMemoryRequirementwheat
procedure, public :: numleaf => numleafwheat
procedure, public :: numstem => numStemwheat
procedure, public :: numroot => numRootwheat
procedure, public :: numPanicle => numPaniclewheat
procedure, public :: getFEMDomainPointers => getFEMDomainPointerswheat
procedure, public :: checkYoungModulus => checkYoungModuluswheat
procedure, public :: checkPoissonRatio => checkPoissonRatiowheat
procedure, public :: checkDensity => checkDensitywheat
procedure, public :: getYoungModulus => getYoungModuluswheat
procedure, public :: getPoissonRatio => getPoissonRatiowheat
procedure, public :: getDensity => getDensitywheat
procedure, public :: getYoungModulusField => getYoungModulusFieldwheat
procedure, public :: getPoissonRatioField => getPoissonRatioFieldwheat
procedure, public :: getDensityField => getDensityFieldwheat
procedure, public :: getStressField => getStressFieldwheat
procedure, public :: setYoungModulus => setYoungModuluswheat
procedure, public :: setPoissonRatio => setPoissonRatiowheat
procedure, public :: setDensity => setDensitywheat
procedure, public :: getEigenMode => getEigenModewheat
procedure, public :: getDisplacement => getDisplacementwheat
procedure, public :: deform => deformwheat
procedure, public :: export_eig => export_eigwheat

Functions

public function nswheat(this) result(ret)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(in) :: this

Return Value integer(kind=int32)

public pure function nnwheat(this) result(ret)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(in) :: this

Return Value integer(kind=int32)

public function newheat(this) result(ret)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(in) :: this

Return Value integer(kind=int32)

public function getEigenModewheat(this, ground_level, penalty, debug, Frequency, EbOM_Algorithm, num_mode) result(EigenVectors)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout), target :: this
real(kind=real64), intent(in) :: ground_level
real(kind=real64), intent(in), optional :: penalty
logical, intent(in), optional :: debug
real(kind=real64), intent(inout), allocatable :: Frequency(:)
character(len=*), intent(in), optional :: EbOM_Algorithm
integer(kind=int32), intent(in), optional :: num_mode

Return Value real(kind=real64), allocatable, (:,:)

public function numleafwheat(this) result(ret)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(in) :: this

Return Value integer(kind=int32)

public function numStemwheat(this) result(ret)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(in) :: this

Return Value integer(kind=int32)

public function numRootwheat(this) result(ret)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(in) :: this

Return Value integer(kind=int32)

public function numPaniclewheat(this) result(ret)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(in) :: this

Return Value integer(kind=int32)

public function getFEMDomainPointerswheat(this) result(FEMDomainPointers)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(in), target :: this

Return Value type(FEMDomainp_), allocatable, (:)

public function checkYoungModuluswheat(this) result(all_young_modulus_is_set)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(in) :: this

Return Value logical

public function checkPoissonRatiowheat(this) result(all_young_modulus_is_set)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(in) :: this

Return Value logical

public function checkDensitywheat(this) result(all_young_modulus_is_set)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(in) :: this

Return Value logical

public function getYoungModulusFieldwheat(this) result(YoungModulus)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this

Return Value real(kind=real64), allocatable, (:)

public function getPoissonRatioFieldwheat(this) result(PoissonRatio)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this

Return Value real(kind=real64), allocatable, (:)

public function getDensityFieldwheat(this) result(Density)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this

Return Value real(kind=real64), allocatable, (:)

public function getYoungModuluswheat(this, DomainID, ElementID) result(YoungModulus)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(in) :: this
integer(kind=int32), intent(in), optional :: DomainID
integer(kind=int32), intent(in), optional :: ElementID

Return Value real(kind=real64)

public function getPoissonRatiowheat(this, DomainID, ElementID) result(PoissonRatio)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(in) :: this
integer(kind=int32), intent(in) :: DomainID
integer(kind=int32), intent(in) :: ElementID

Return Value real(kind=real64)

public function getDensitywheat(this, DomainID, ElementID) result(Density)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(in) :: this
integer(kind=int32), intent(in) :: DomainID
integer(kind=int32), intent(in) :: ElementID

Return Value real(kind=real64)

public function getElementListwheat(this, x_min, x_max, y_min, y_max, z_min, z_max, debug) result(ElementList)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this
real(kind=real64), intent(in), optional :: x_min
real(kind=real64), intent(in), optional :: x_max
real(kind=real64), intent(in), optional :: y_min
real(kind=real64), intent(in), optional :: y_max
real(kind=real64), intent(in), optional :: z_min
real(kind=real64), intent(in), optional :: z_max
logical, intent(in), optional :: debug

Return Value integer(kind=int32), allocatable, (:,:)

public function getDisplacementwheat(this, ground_level, penalty, debug, EbOM_Algorithm) result(displacement)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout), target :: this
real(kind=real64), intent(in) :: ground_level
real(kind=real64), intent(in), optional :: penalty
logical, intent(in), optional :: debug
character(len=*), intent(in), optional :: EbOM_Algorithm

Return Value real(kind=real64), allocatable, (:)

public function getStressFieldwheat(this, displacement, i, j, option) result(StressField)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this
real(kind=real64), intent(in) :: displacement(:)
integer(kind=int32), intent(in), optional :: i
integer(kind=int32), intent(in), optional :: j
character(len=*), intent(in), optional :: option

Return Value real(kind=real64), allocatable, (:)


Subroutines

public subroutine createwheat(this, config, debug)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this
character(len=*), intent(in) :: config
logical, intent(in), optional :: debug

public subroutine mshwheat(this, name, num_threads)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this
character(len=*), intent(in) :: name
integer(kind=int32), intent(in), optional :: num_threads

public subroutine vtkwheat(this, name, num_threads, single_file, scalar_field, vector_field, tensor_field, field_name)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this
character(len=*), intent(in) :: name
integer(kind=int32), intent(in), optional :: num_threads
logical, intent(in), optional :: single_file
real(kind=real64), intent(in), optional :: scalar_field(:)
real(kind=real64), intent(in), optional :: vector_field(:,:)
real(kind=real64), intent(in), optional :: tensor_field(:,:,:)
character(len=*), intent(in), optional :: field_name

public subroutine jsonwheat(this, name)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this
character(len=*), intent(in) :: name

public subroutine stlwheat(this, name, num_threads, single_file)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this
character(len=*), intent(in) :: name
integer(kind=int32), intent(in), optional :: num_threads
logical, intent(in), optional :: single_file

public subroutine movewheat(this, x, y, z)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this
real(kind=real64), intent(in), optional :: x
real(kind=real64), intent(in), optional :: y
real(kind=real64), intent(in), optional :: z

public subroutine rotatewheat(this, x, y, z)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this
real(kind=real64), intent(in), optional :: x
real(kind=real64), intent(in), optional :: y
real(kind=real64), intent(in), optional :: z

public recursive subroutine updatewheat(this, stem_id, root_id, leaf_id, overset_margin, debug)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this
integer(kind=int32), intent(in), optional :: stem_id
integer(kind=int32), intent(in), optional :: root_id
integer(kind=int32), intent(in), optional :: leaf_id
real(kind=real64), intent(in), optional :: overset_margin
logical, intent(in), optional :: debug

public subroutine removewheat(this, root)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this
logical, intent(in), optional :: root

public subroutine checkMemoryRequirementwheat(this)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(in) :: this

public recursive subroutine setYoungModuluswheat(this, YoungModulus, stem, root, leaf, panicle, ElementList)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this
real(kind=real64), intent(in) :: YoungModulus
logical, intent(in), optional :: stem
logical, intent(in), optional :: root
logical, intent(in), optional :: leaf
logical, intent(in), optional :: panicle
integer(kind=int32), intent(in), optional :: ElementList(:,:)

public recursive subroutine setPoissonRatiowheat(this, PoissonRatio, stem, root, leaf, panicle)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this
real(kind=real64), intent(in) :: PoissonRatio
logical, intent(in), optional :: stem
logical, intent(in), optional :: root
logical, intent(in), optional :: leaf
logical, intent(in), optional :: panicle

public recursive subroutine setDensitywheat(this, Density, stem, root, leaf, panicle)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this
real(kind=real64), intent(in) :: Density
logical, intent(in), optional :: stem
logical, intent(in), optional :: root
logical, intent(in), optional :: leaf
logical, intent(in), optional :: panicle

public subroutine deformwheat(this, displacement)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout), target :: this
real(kind=real64), intent(in), optional :: displacement(:)

public subroutine export_eigwheat(this, Name, Frequency, ModeVectors, stress_type)

Arguments

Type IntentOptional Attributes Name
class(wheat_), intent(inout) :: this
character(len=*), intent(in) :: Name
real(kind=real64), intent(in) :: Frequency(:)
real(kind=real64), intent(in) :: ModeVectors(:,:)
character(len=*), intent(in), optional :: stress_type