Subversion Repositories wimsdev

Rev

Rev 12963 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12963 Rev 17747
Line 2... Line 2...
2
.\"     Title: CHEMEQ
2
.\"     Title: CHEMEQ
3
.\"    Author: Georges Khaznadar <georgesk@debian.org>
3
.\"    Author: Georges Khaznadar <georgesk@debian.org>
4
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
4
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
5
.\"      Date: 12/02/2016
5
.\"      Date: 06/19/2013
6
.\"    Manual: User Manuals
6
.\"    Manual: User Manuals
7
.\"    Source: chemeq 2.10
7
.\"    Source: chemeq 2.10
8
.\"  Language: English
8
.\"  Language: English
9
.\"
9
.\"
10
.TH "CHEMEQ" "1" "12/02/2016" "chemeq 2.10" "User Manuals"
10
.TH "CHEMEQ" "1" "06/19/2013" "chemeq 2.10" "User Manuals"
11
.\" -----------------------------------------------------------------
11
.\" -----------------------------------------------------------------
12
.\" * Define some portability stuff
12
.\" * Define some portability stuff
13
.\" -----------------------------------------------------------------
13
.\" -----------------------------------------------------------------
14
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
.\" http://bugs.debian.org/507673
15
.\" http://bugs.debian.org/507673
Line 35... Line 35...
35
.HP \w'\fBchemeq\fR\ 'u
35
.HP \w'\fBchemeq\fR\ 'u
36
\fBchemeq\fR [\fB\-h\fR] [\fB\-v\fR]
36
\fBchemeq\fR [\fB\-h\fR] [\fB\-v\fR]
37
.SH "DESCRIPTION"
37
.SH "DESCRIPTION"
38
.PP
38
.PP
39
\fBchemeq\fR
39
\fBchemeq\fR
40
is a chemical equation analyzer\&. It is a fast lexical and syntaxic analyser which helps to find out chemical information embedded in source chemical equations\&. Data can be output in various sophisticated formats, depending on options\&. \*(Aqchemeq\*(Aq defaults to \*(Aqchemeq \-mlcwCn\*(Aq\&.
40
is a chemical equation analyzer\&. It is a fast lexical and syntaxic analyser which helps to find out chemical informations embedded in source chemical equations\&. Data can be output in various sophisticated formats, depending on options\&. \*(Aqchemeq\*(Aq defaults to \*(Aqchemeq \-mlcwCn\*(Aq\&.
41
.SH "OPTIONS"
41
.SH "OPTIONS"
42
.PP
42
.PP
43
\fB\-M\fR
43
\fB\-M\fR
44
.RS 4
44
.RS 4
45
Outputs al list of space separated molecular weights\&.
45
Outputs al list of space separated molecular weights\&.
Line 57... Line 57...
57
\fBL\fRaTeX string representing the chemical equation\&.
57
\fBL\fRaTeX string representing the chemical equation\&.
58
.RE
58
.RE
59
.PP
59
.PP
60
\fB\-c\fR
60
\fB\-c\fR
61
.RS 4
61
.RS 4
62
Outputs a message giving information about the Conservation of elements and charges in the equation\&. \*(AqOK\*(Aq means that both elements and electric charges are balanced\&.
62
Outputs a message giving informations about the Conservation of elements and charges in the equation\&. \*(AqOK\*(Aq means that both elements and electric charges are balanced\&.
63
.RE
63
.RE
64
.PP
64
.PP
65
\fB\-w\fR
65
\fB\-w\fR
66
.RS 4
66
.RS 4
67
Outputs the LaTeX string representing the Gulder\-\fBW\fRaage equation related to the input chemical equation, or the Nernst equation, if the input equation is a redox semi\-equation\&.
67
Outputs the LaTeX string representing the Gulder\-\fBW\fRaage equation related to the input chemical equation, or the Nernst equation, if the input equation is a redox semi\-equation\&.
Line 92... Line 92...
92
.RE
92
.RE
93
.PP
93
.PP
94
\fB\-W\fR
94
\fB\-W\fR
95
.RS 4
95
.RS 4
96
Changes the behavior of the renderer for some versions of
96
Changes the behavior of the renderer for some versions of
97
\fBW\fRims : works around a bug with the macro \erightarrow\&.
97
\fBW\fRims : works around a bug whith the macro \erightarrow\&.
98
.RE
98
.RE
99
.PP
99
.PP
100
\fB\-h\fR
100
\fB\-h\fR
101
.RS 4
101
.RS 4
102
Displays
102
Displays
Line 127... Line 127...
127
.RE
127
.RE
128
.SH "EXAMPLES"
128
.SH "EXAMPLES"
129
.PP
129
.PP
130
\fBecho "1/2 Cu^2+ + OH\- \-> 1/2Cu(OH)2s" | chemeq\fR
130
\fBecho "1/2 Cu^2+ + OH\- \-> 1/2Cu(OH)2s" | chemeq\fR
131
.RS 4
131
.RS 4
132
will display information about the reaction of hydroxyde and Cu II ions\&.
132
will display informations about the reaction of hydroxyde and Cu II ions\&.
133
.RE
133
.RE
134
.PP
134
.PP
135
\fBecho "MnO4^\- + 8H3O^+ + 5e\- \-\-> Mn^2+ + 12 H2O" | chemeq\fR
135
\fBecho "MnO4^\- + 8H3O^+ + 5e\- \-\-> Mn^2+ + 12 H2O" | chemeq\fR
136
.RS 4
136
.RS 4
137
will display information about the reaction of reduction of permanganate ions in an acid environment\&.
137
will display informations about the reaction of reduction of permanganate ions in an acid environment\&.
138
.RE
138
.RE
139
.PP
139
.PP
140
\fBecho "MnO4^\- + 8H3O^+ + 5e\- \-\-> Mn^2+ + 12 H2O" | chemeq \-w\fR
140
\fBecho "MnO4^\- + 8H3O^+ + 5e\- \-\-> Mn^2+ + 12 H2O" | chemeq \-w\fR
141
.RS 4
141
.RS 4
142
will display the LaTeX format for the Nernst law related to the reduction of permanganate ions in an acid environment\&.
142
will display the LaTeX format for the Nernst law related to the reduction of permanganate ions in an acid environment\&.
Line 148... Line 148...
148
.RE
148
.RE
149
.SH "NOTES"
149
.SH "NOTES"
150
.PP
150
.PP
151
\fBsyntax of ions\fR
151
\fBsyntax of ions\fR
152
.RS 4
152
.RS 4
153
although in some cases, shorter expressions are successfully parsed, it is safer to consider that an "up arrow" (^) must be put before the charge symbols of an ion\&. Examples : H3O^+, Fe(CN)6^4\-, OH^\-
153
allthough in some cases, shorter expressions are sucessfully parsed, it is safer to consider that an "up arrow" (^) must be put before the charge symbols of an ion\&. Examples : H3O^+, Fe(CN)6^4\-, OH^\-
154
.RE
154
.RE
155
.PP
155
.PP
156
\fBComposing chemical equations\fR
156
\fBComposing chemical equations\fR
157
.RS 4
157
.RS 4
158
Two operators are defined, # as an additive oprator and ~ (tilde) as a substractive operator: they allow one to compose several chemical equations
158
Two operators are defined, # as an additive oprator and ~ (tilde) as a substractive operator: they allow to compose several chemical equations
159
.sp
159
.sp
160
\fB echo "MnO4^\- + 8H3O^+ + 5e\- \-\-> Mn^2+ + 8 H2O ~ 5Fe^3+ + 5e\- \-> 5Fe^2+" | chemeq\fR
160
\fB echo "MnO4^\- + 8H3O^+ + 5e\- \-\-> Mn^2+ + 8 H2O ~ 5Fe^3+ + 5e\- \-> 5Fe^2+" | chemeq\fR
161
.sp
161
.sp
162
will display the pure redox equation from the first equation, minus the second one\&. Electrons are simplified\&. So it will be equivalent to:
162
will display the pure redox equation from the first equation, minus the second one\&. Electrons are simplified\&. So it will be equivalent to:
163
.sp
163
.sp
Line 165... Line 165...
165
which is their combination\&.
165
which is their combination\&.
166
.RE
166
.RE
167
.PP
167
.PP
168
\fBMutiplying a chemical equation by one coefficient\fR
168
\fBMutiplying a chemical equation by one coefficient\fR
169
.RS 4
169
.RS 4
170
The operator * permits one to multiply a whole equation by one coefficient which may be a fraction\&. Here is an example:
170
The operator * permits to multiply a whole equation by one coefficient which may be a fraction\&. Here is an example:
171
.sp
171
.sp
172
\fB echo "5 * Fe^3+ + e\- \-> Fe^2+" | chemeq \fR
172
\fB echo "5 * Fe^3+ + e\- \-> Fe^2+" | chemeq \fR
173
.sp
173
.sp
174
will be equivalent to
174
will be equivalent to
175
.sp
175
.sp
Line 180... Line 180...
180
.RS 4
180
.RS 4
181
The two previous techniques can be used at the same time, which enables you to make more comlicated combinations, like this one:
181
The two previous techniques can be used at the same time, which enables you to make more comlicated combinations, like this one:
182
.sp
182
.sp
183
\fB echo "Fe^3+ + e^\- \-> Fe^2+ (0\&.77 V) # Fe^2+ + 6CN^\- \-> Fe(CN)6^4\- (Kfa=1e24) ~ Fe^3+ + 6CN^\- \-> Fe(CN)6^3\- (Kfb=1e31)" | chemeq \fR
183
\fB echo "Fe^3+ + e^\- \-> Fe^2+ (0\&.77 V) # Fe^2+ + 6CN^\- \-> Fe(CN)6^4\- (Kfa=1e24) ~ Fe^3+ + 6CN^\- \-> Fe(CN)6^3\- (Kfb=1e31)" | chemeq \fR
184
.sp
184
.sp
185
which will work as expected, and yield a good value for the stan\(hy dard potential of the redox couple of hexacyanoferrate II and III ions\&.
185
which will work as expected, and yeld a good value for the stan\(hy dard potential of the redox couple of hexacyanoferrate II and III ions\&.
186
.RE
186
.RE
187
.SH "KNOWN BUGS"
187
.SH "KNOWN BUGS"
188
.PP
188
.PP
189
When not specified, chemical entities coming from the standard input are believed to be in aqueous solutions\&. Water is considered by default as the main solvent\&. Only one liquid (aqueous) phase is currently taken in account\&. All solid chemical entities are considered as parts of separated phases\&. Suffixes _s, _g and _aq can be used to enforce the type of some chemical entities\&. There may be problemes when you write a standard potential with no decimal dot\&. For example, the entry
189
When not specified, chemical entities coming from the standard input are believed to be in aqueous solutions\&. Water is considered by default as the main solvent\&. Only one liquid (aqueous) phase is currently taken in account\&. All solid chemical entities are considered as parts of separated phases\&. Suffixes _s, _g and _aq can be used to enforce the type of some chemical entities\&. There may be problemes when you write a standard potential with no decimal dot\&. For example, the entry
190
\fBMn^2+ + 2e^\- \-> Mn_s (\-1 V)\fR
190
\fBMn^2+ + 2e^\- \-> Mn_s (\-1 V)\fR