"enabled" Keyword

The "enabled" keyword appears in multiple Chemistry Builder JSON objects, facilitating quick toggling of properties or options without the need to create or delete JSON objects explicitly, thereby reducing parameter tuning efforts. Here are guidelines, examples, and exceptions for its usage:

  • The "enabled" keyword must be a Boolean type, accepting only true or false.

  • It must be enclosed within "{ }" in a JSON object.

  • When set to 'true', the input within the JSON object is processed.

  • When set to 'false', the input within the JSON object is disregarded.

  • If the "enabled" keyword is absent, the JSON object is processed by default.

  • If the "enabled" field contains values other than 'true' or 'false', the JSON object is still processed.

{
    	"inflows": [
		{
			"name": "H2O", 
			"enabled": true 
		},
		{
			"name": "NACL",
			"enabled": false
		},
		{ 
			"name": "CO2", 
		} ]
} 

In this example, "H2O" and "CO2" are included as inflow species, whereas "NaCl" is excluded.

Last updated