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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 16: Molecular substances"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 16.1_e: example_1.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc\n",
"//Initialization of variables\n",
"e=1.609*10^-19 //C\n",
"//calculations\n",
"mux=(-0.36*e*(-0.8) + 0.45*e*(2.1) )*10^-12 /(3.33564*10^-30)\n",
"muy=-0.91\n",
"muz=0\n",
"mux=-1.1\n",
"mu=sqrt(mux*mux+muy*muy+muz*muz)\n",
"//results\n",
"printf('Net dipole moment = %.1f D',mu+0.1)"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 16.1_i: illustration_1.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc\n",
"//Initialization of variables\n",
"EH=2.1\n",
"EBr=2.8\n",
"//calculations\n",
"diff=-EH+EBr\n",
"//results\n",
"printf('Prediced dipole moment = %.1f D',diff)"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 16.2_e: example_2.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc\n",
"//Initialization of variables\n",
"Na=6.023*10^23 // /mol\n",
"e=1.60228*10^-19 //C\n",
"e0=8.85419*10^-12 //C^2/J m\n",
"//calculations\n",
"factor=Na*e^2 /(4*%pi*e0)\n",
"//Multiply by Z^2/R to get the value of potential energy. Plot the graph\n",
"//results\n",
"printf('Potential energy = %.3e Z*Z/R kJ/mol',factor)"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 16.2_i: illustration_2.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc\n",
"//Initialization of variables\n",
"mu1=1.4 //D\n",
"mu2=1.4 //D\n",
"angle=180 //degrees\n",
"d=3 //nm\n",
"D=4.7*10^-30 //C m\n",
"//calculations\n",
"Vmol=D*D*(1-3*(cosd(angle))^2)/(4*%pi*8.854*10^-12 *(d*10^-9)^3)\n",
"V=Vmol*(6.023*10^23)\n",
"//results\n",
"printf('Potential energy = %.1f J/mol',V)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Scilab",
"language": "scilab",
"name": "scilab"
},
"language_info": {
"file_extension": ".sce",
"help_links": [
{
"text": "MetaKernel Magics",
"url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
}
],
"mimetype": "text/x-octave",
"name": "scilab",
"version": "0.7.1"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|