fuel: Determine the form of fossil fuels in accordance with GOST...

Description Usage Arguments Value Examples

View source: R/fuel.R

Description

Using rules prescribed by GOST 25543 (Table 2) determine the form of fossil fuels that could be classified as brown or hard coal, or anthracite.

Usage

1
fuel(r = 1.3, qsaf = NA, vdaf = NA)

Arguments

r

reflectance of vitrinite, [%], measured in accordance with ISO 7404-5. Type: [double].

qsaf

gross calorific value, [MJ/kg] or [J/g], measured in accordance with ISO 1928 and recalculated on moisture ash-free basis. Type: [double].

vdaf

volatile matter yield, [%], measured in accordance with ISO 562 or ISO 5071-1 and recalculated on dry ash-free basis. Type: [double].

Value

Identifier of fossil fuel form:

Type: [character].

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
fuel()
# [1] "hard"

fuel(c(0.3, 1.3), c(20, NA), c(8, NA))
# [1] "brown" "hard"

# building test:
with(
  read.csv(text =
   "R0, Qsdaf,Vdaf,Form,Comment
    0.2,     ,    ,brown,Unambiguously brown coal
    1.3,     ,    ,hard,Unambiguously hard coal
    2.8,     ,    ,anthracite,Unambiguously anthracite
    0.3,  20.,  8.,brown,Unambiguously brown coal with redundant parameters
    1.9,   24,28.3,hard,Unambiguously hard coal with redundant parameters
    3.0,   28,   6,anthracite,Unambiguously anthracite with redundant parameters
    0.5,   20,    ,brown,Brown coal in ambiguous brown-hard zone
    0.5,   24,    ,hard,Hard coal in ambiguous brown-hard zone
    0.5,   28,    ,hard,Hard coal in ambiguous brown-hard zone
    2.3,     ,   8,hard,Hard coal in ambiguous hard-anthracite zone
    2.3,     ,  28,hard,Hard coal in ambiguous hard-anthracite zone
    2.3,     ,   6,anthracite,Anthracite coal in ambiguous hard-anthracite zone"
  ),
  stopifnot(all(fuel(R0, Qsdaf, Vdaf) == Form))
)

coal-coke/coal.state documentation built on Feb. 12, 2021, 10:02 a.m.