{"id":3908,"date":"2019-02-12T16:10:08","date_gmt":"2019-02-12T16:10:08","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/16-fluid-composition-and-properties\/set_composition\/"},"modified":"2025-10-28T11:19:27","modified_gmt":"2025-10-28T16:19:27","slug":"set_composition","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/20-fluid-composition-and-properties\/set_composition\/","title":{"rendered":"set_composition"},"content":{"rendered":"<h3>Purpose:<\/h3>\n<dl>\n<dd>\n<p>Update a composition variable by reading concentrations from specified real variables and transmitting the information via an event message at a defined process interval.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>set_composition<\/strong> &lt;priority&gt; &lt;process_interval&gt; &lt;filename&gt; [+c]<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr>\n<td>\n<p>priority<\/p>\n<\/td>\n<td>\n<p>Specify the real-time task priority. The recommended value range is 11-12.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>process_interval<\/p>\n<\/td>\n<td>\n<p>Specify the process interval. The recommended rate is SLO. One of the slower USER rates can be used if set to 2000, which is the expected update rate slower than 1hz.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>filename<\/p>\n<\/td>\n<td>\n<p>Specify the\u00a0path to the specification file containing stream identifiers and component details. See example spec file content below.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>+c<\/p>\n<\/td>\n<td>\n<p>Optional. Specify this flag to indicate a critical task to the watchdog.\u00a0<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><strong>set_composition<\/strong> 11 SLO \/specs\/set_stack_comp &amp;<\/p>\n<p>The above command spawns set_composition which will use the file \/specs\/set_stack_comp for the initialization. specification file for the &#8220;STACK&#8221; stream\/composition variable.<\/p>\n<div><span style=\"text-decoration: underline;\">Example Spec File:<\/span>\u00a0<\/div>\n<div>#This\u00a0is\u00a0the\u00a0stream\u00a0identifier \u00a0<br \/>\n\u00a0STACK \u00a0<br \/>\n\u00a0#\u00a0time_t\u00a0when\u00a0data\u00a0was\u00a0updated\u00a0(this\u00a0is\u00a0not\u00a0used\u00a0at\u00a0this\u00a0time) \u00a0<br \/>\n\u00a01450213661 \u00a0<br \/>\n\u00a0<br \/>\n\u00a0#variable\u00a0label\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0component_extender \u00a0<br \/>\n\u00a0TFS_Others_Frac\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 N2 \u00a0<br \/>\n\u00a0TFS_Methane_Frac\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ME \u00a0<br \/>\n\u00a0TFS_CO2_Frac\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 C2 \u00a0<br \/>\n\u00a0TFS_Propane_Frac\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PR \u00a0<br \/>\n\u00a0TFS_I_Butane_Frac\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 IB \u00a0<br \/>\n\u00a0TFS_N_Butane_Frac\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NB \u00a0<br \/>\n\u00a0TFS_I_Pentane_Frac\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 IP \u00a0<br \/>\n\u00a0TFS_Ethane_Frac\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 EE \u00a0<br \/>\n\u00a0#####################################################<br \/>\n\u00a0 ev_tcp_specs\u00a0file: \u00a0<br \/>\nclient \u00a0<br \/>\n\u00a0#####################################################<br \/>\n\u00a0#remote_IP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0source_event_name\u00a0\u00a0\u00a0\u00a0destination_event_name \u00a0<br \/>\n\u00a0\u00a0143.222.77.80\u00a0\u00a0\u00a0\u00a0\u00a0onga_onga\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0onga_onga \u00a0<br \/>\n\u00a0#####################################################<\/div>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>The &#8220;set_composition&#8221; app is normally spawned in the go.scp script.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p><a href=\"\/wp-content\/uploads\/Composition-and-Property-Variables.pdf\">Composition and Property Variables<\/a>\u00a0<\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Update a composition variable by reading concentrations from specified real variables and transmitting the information via an event message at a defined process interval. Enter: set_composition &lt;priority&gt; &lt;process_interval&gt; &lt;filename&gt; [+c] Where: priority Specify the real-time task priority. The recommended value range is 11-12. process_interval Specify the process interval. The recommended rate is SLO. One [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1963,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3908","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=3908"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3908\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1963"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}