construct_den_3phase Module Function

module function construct_den_3phase(input, i_material) result(property)

Arguments

Type IntentOptional Attributes Name
type(type_input), intent(in) :: input
integer(kind=int32), intent(in) :: i_material

Return Value class(abst_den), allocatable


Called by

proc~~construct_den_3phase~~CalledByGraph proc~construct_den_3phase construct_den_3phase interface~construct_den_3phase construct_den_3phase interface~construct_den_3phase->proc~construct_den_3phase interface~type_den_3phase type_den_3phase interface~type_den_3phase->interface~construct_den_3phase

Source Code

    module function construct_den_3phase(input, i_material) result(property)
        implicit none
        class(abst_den), allocatable :: property
        integer(int32), intent(in) :: i_material
        type(type_input), intent(in) :: input

        if (allocated(property)) deallocate (property)
        allocate (Type_DEN_3Phase :: property)

        property%material_id = i_material

        property%material1 = input%basic%materials(i_material)%thermal%density(1)
        property%material2 = input%basic%materials(i_material)%thermal%density(2)
        property%material3 = input%basic%materials(i_material)%thermal%density(3)

    end function construct_den_3phase