-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocuments.py
More file actions
182 lines (139 loc) · 4.65 KB
/
Copy pathdocuments.py
File metadata and controls
182 lines (139 loc) · 4.65 KB
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
documents = [
# NEWTON'S LAWS
{
"id": "doc_001",
"topic": "Newton Laws",
"text": """
Newton’s Laws of Motion describe the relationship between the motion of an object and the forces acting on it.
First Law (Law of Inertia): A body remains at rest or in uniform motion unless acted upon by an external force.
Second Law: The rate of change of momentum is proportional to the applied force and occurs in the direction of the force. It is mathematically expressed as F = ma.
Third Law: For every action, there is an equal and opposite reaction.
These laws form the foundation of classical mechanics and are widely used in engineering applications.
"""
},
# OHM’S LAW
{
"id": "doc_002",
"topic": "Ohm Law",
"text": """
Ohm’s Law states that the current flowing through a conductor is directly proportional to the voltage applied across it, provided temperature remains constant.
The mathematical expression is:
V = IR
Where:
V = Voltage (Volts)
I = Current (Amperes)
R = Resistance (Ohms)
This law is fundamental in electrical engineering and is used to design and analyze circuits.
"""
},
# WORK & ENERGY
{
"id": "doc_003",
"topic": "Work Energy",
"text": """
Work is said to be done when a force is applied to an object and it causes displacement. The formula for work is:
Work = Force × Displacement
Energy is the ability to do work. It exists in various forms such as kinetic energy and potential energy.
Kinetic Energy = (1/2)mv²
Potential Energy = mgh
The law of conservation of energy states that energy cannot be created or destroyed, only transformed from one form to another.
"""
},
# KIRCHHOFF’S LAWS
{
"id": "doc_004",
"topic": "Kirchhoff Laws",
"text": """
Kirchhoff’s Laws are used to analyze electrical circuits.
1. Kirchhoff’s Current Law (KCL):
The sum of currents entering a junction equals the sum of currents leaving the junction.
2. Kirchhoff’s Voltage Law (KVL):
The sum of all voltages in a closed loop is equal to zero.
These laws help in solving complex circuits involving multiple loops and nodes.
"""
},
# THERMODYNAMICS
{
"id": "doc_005",
"topic": "Thermodynamics",
"text": """
Thermodynamics is the branch of physics that deals with heat, work, and energy.
First Law: Energy cannot be created or destroyed (law of conservation of energy).
Second Law: Entropy of an isolated system always increases, indicating the direction of natural processes.
Third Law: As temperature approaches absolute zero, entropy approaches a constant minimum.
Thermodynamics is widely used in engines, refrigerators, and power plants.
"""
},
# SIMPLE HARMONIC MOTION (IMPORTANT)
{
"id": "doc_006",
"topic": "SHM",
"text": """
Simple Harmonic Motion (SHM) is a type of periodic motion in which a restoring force acts on the object to bring it back to its equilibrium position.
The restoring force is directly proportional to displacement and acts in the opposite direction:
F = -kx
Examples include:
- Motion of a spring
- Oscillation of a pendulum
The motion is sinusoidal and repeats after a fixed interval of time.
"""
},
# WAVES
{
"id": "doc_007",
"topic": "Waves",
"text": """
A wave is a disturbance that transfers energy from one point to another without the transfer of matter.
Types of waves:
- Mechanical waves (require medium)
- Electromagnetic waves (do not require medium)
Wave properties include wavelength, frequency, and speed:
Wave speed = Frequency × Wavelength
Waves are used in communication systems and signal transmission.
"""
},
# UNITS & MEASUREMENTS
{
"id": "doc_008",
"topic": "Units",
"text": """
Units and measurements are essential in physics to quantify physical quantities.
The SI system includes:
- Meter (length)
- Kilogram (mass)
- Second (time)
Derived units include:
- Velocity (m/s)
- Force (Newton)
Accurate measurement ensures precision in scientific experiments.
"""
},
# CURRENT ELECTRICITY
{
"id": "doc_009",
"topic": "Current Electricity",
"text": """
Electric current is the flow of electric charge through a conductor.
It is defined as:
I = Q / t
Where:
I = Current
Q = Charge
t = Time
Current is measured in amperes. It plays a crucial role in electrical circuits and devices.
"""
},
# SEMICONDUCTORS
{
"id": "doc_010",
"topic": "Semiconductors",
"text": """
Semiconductors are materials whose conductivity lies between conductors and insulators.
Examples include silicon and germanium.
Types:
- Intrinsic semiconductors
- Extrinsic semiconductors (p-type and n-type)
They are widely used in electronic devices like diodes, transistors, and integrated circuits.
"""
}
]