init_json Function

public function init_json(name, path, only)

Initialize a Substance object from a json file, provided it’s name. It is also optional to use a custom path for the component.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: name

Component’s name

character(len=*), intent(in), optional :: path

Optional database path

character(len=*), intent(in), optional :: only(:)

Only extract this parameters, the options are:

  • “critical”: Tc, Pc and Acentric Factor
  • “unifac_vle”: UNIFAC-VLE (Original UNIFAC) parameters
  • “parachor”: Parachor
  • “mathiascopeman”: Mathias Copeman function parameters

Return Value type(Substance)


Calls

proc~~init_json~~CallsGraph proc~init_json init_json proc~from_json~2 CriticalConstants%from_json proc~init_json->proc~from_json~2 proc~scalar_from_json ScalarProperty%scalar_from_json proc~from_json~2->proc~scalar_from_json get get proc~scalar_from_json->get initialize initialize proc~scalar_from_json->initialize load_file load_file proc~scalar_from_json->load_file proc~open_json open_json proc~scalar_from_json->proc~open_json proc~open_json->initialize proc~open_json->load_file failed failed proc~open_json->failed

Called by

proc~~init_json~~CalledByGraph proc~init_json init_json interface~substance Substance interface~substance->proc~init_json

Variables

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: file
integer, public :: i