Nonlinear dynamics and chaos
Life is a non-dynamic process, even chaotic. But I think that these processes can be modeled properly by using our mind and mathematics. This blog try to show what I've learned about advanced mathematics, adn give tips that may will make your life easier
miércoles, 7 de diciembre de 2011
Basic details of Divergence and Curl (II)
Hi everybody
This time I will give some explanations about these two operators, very important in engineering and science world. This comes when I faced several exercices focused on understanding the divergence concept. Personally I considered that these concepts would be nice for those working on them.
I commented in the previous post that divergence has a direct relation with a flux balance through a surface. Maybe a rigurous way to proceed is to chech the mathematical definition:
$$\nabla \cdot F = \frac{1}{\bigtriangleup V}\int_S \vec{F} \cdot \vec{n} \cdot dS $$
As it can be seen, divergence is defined as a net flux of a field that pass through a surface of a certain volume. Let's give an example. We will use spherical coordinates:
$\vec{F}=r^2 \vec{r}$
Applying the divergence definition for a reference system in spherical coordinates:
$\nabla \cdot \vec{F}=\frac{1}{r^2}\frac{\partial}{\partial r} \left( r^2 \vec{F} \right) = 4r $
This result shows that divergence is always positive in all the field, except in (0,0), that must be 0. As we approach more to the origin, vector field lines decrease.
We can analyze zones where divergence is positive, negative or zero. Recall that divergence is related with a balance in a certain volume. As it can be seen, divergence is always positive in all the field. As we move away from the coordinate system, flux passing through different surfaces surrounding spherical volumes (as we have chosen spherical coordinates, in 2D would be circumferences) is larger.
When we plot a detail of this field and we paint field lines at positions r and r+dr, we can see that field lines are larger when we go away from (0,0). Divergence applied to a diferential of volume between these two surfaces (situated at r and r+dr) must be greater than zero.
But this balance may lead to a have some errors when calculating divergence. We will ilustrate an example of this fact:
$\vec{F}=\frac{1}{r^2} \vec{r}$
Vector field is:
As it can be appreciated, field lines decrease when radius increases. If we make a visual analysis following the other example, it may be deduced that divergence in this field is always smaller than zero for every r, giving a zero value in the infinite. If we make an zoom in a certain zone of the vector field:
It seems that field lines are smaller in S+dS than those placed in S, so balance would be in a first step smaller than zero. However, this is not like that. If we calculate divergence analytically:
$\nabla \cdot \vec{F}=\frac{1}{r^2}\frac{\partial}{\partial r} \left( r^2 \vec{F} \right) = 0 $
Result of the calculations give a value equal to zero for every point in the field. What's wrong here?
The answer is not trivial at all. If we observe again the definition of divergence, it can be appreciated that the answer is on the surface flow integral. When we choose a volume as the picture, it can be seen that field value is greater than in surface S than in surface S+dS (it can be seen that field value decreases with increasing r). But it must be mentioned that surface through which field flow passes is also greater in S+dS than in S.
Globally we have that a DECREASE OF THE FIELD VALUE WHEN RADIUS IS INCREASED IS BALANCED WITH SURFACE INCREMENT WHEN WE INCREASE THE RADIUS. It can be concluded that, although F has more intensity in S than in S+dS, the surface through which field passes is smaller than in S+dS, balancing the integrals in both points. In this example, this balance is exactly equal, and then flux passing through both surfaces is exactly the same.
So, resuming:
- Divergence of a vectorial field is a scalar
- The divergence implies a net flux balance in a certain volume through a surface
- When calculating the divergence in a given volume by visual analysis, be aware about value of the field and considered surfaces.
In following posts I will do a similar example, but with curl operator.
domingo, 4 de diciembre de 2011
LATEX server change
Hi
Due to changes in LATEX server that I publish here, I have found another alternative link to help you with this inconvenient . This new script have to be introduced as I explained in the previous post. Just erase the older one and write the following command:
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js">
MathJax.Hub.Config({
extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
},
"HTML-CSS": { availableFonts: ["TeX"] }
});
</script>
That's it !! You can write LATEX again !!
Note:
Script is designed to make inline writting when use single dolar expression ($), and separated centered expression when using double dolar expression ($$).
Example
This is an inline example $f=\sqrt{x^2+y^2}$ of Latex writting
This is an example
$$ g=\frac{\partial}{\partial x}\left( z^2+6x \right) $$
of separated centered writting.
Finite elements introduction
Hi
Today I will give a small introduction about one of the most used numerical methods in science and engineering world: finite elements method.
Finite element method consist on purpose a discrete function as an approximated solution to an equation or set of equations describing a physic or mathematical system.
I wil ilustrate an unidimensional example very intuitive to see which is the basics:
Assume we watn to solve an equation like that
$$ \partial_x (p \partial_x y)+ (q+\lambda \sigma) \partial_x y= 0$$
This equation is a general expression for Sturm-Liouville problem, but this is irrelevant in this post. It can be observed that is a second order differential equation with variable coefficients.
Finite element method purpose the division of "y" function in n geometric elements. Extremes where two or more elements join are called nodes. We also assume that we know exactly the value of y funcion in each node. As we only know the value on the nodes, we need to interpolate the value of y in every part of the domain, that is, in each part of each element. For that purpose, we propose a "nodal function", which will take a 0 value for all points of the domain and 1 exactly in the node where is defined.
The next step is quite interesting. As we have divided the y function (the solution of the system) in n elements, we have n+1 nodes that they are connected because they are defined in our domain of study. We can assume then that the global solution will be a linear combination of each nodal function defined for each element that forms our domain. Constants of linear combination will be the n+1 values of the funcion exactly known in each node.
$$y=\Sigma_{n=0}^{n+1} \phi_n y_n$$
Notice that the approximated discrete solution, if solution, must satisfy the differential equation. So:
$$ \partial_x (p \partial_x (\Sigma_{n=0}^{n+1} \phi_n y_n))+ (q+\lambda \sigma) \partial_x (\Sigma_{n=0}^{n+1} \phi_n y_n)= E $$
It can be appreciated that the equation is not equal to zero: this is true, as we have approached a continuous solution with a discrete funcion. There must be an error E by doing this. And it can be seen that we have just obtained the expression of the error of our method. The next step consist of choosing a good criteria to make converge this error funcion E to zero. If we success in our task, we will have a good solution for our equation.
The method we are going to use is called "average weight method. This method try to find a serie of functions such us its scalar product with error function must be zero.
$$\int w(x) E dx = 0$$
We just want to find a set of functions orthogonal to error function. If we chose weight functions as the same type as nodal functions, we can just see that by doing integrals converge to zero, we are also doing our error funcion converge to zero.
This method is quite simple in its basic structure, but its computing is quite hard to compile. We know that the more nodes we consider, the more exact our solution will be, but we have to compute more calculations. The problem is not so trivial as we are limited by our computation capacity.
In following posts I will explain in deep some examples and other detailed observations about this method.
A very brief introduction to perturbation methods
Hi everybody
Today I'm going to talk about a topic which in my opinion it's fascinating and very imporant to be known for all those who want to practice cutting edge science. I'm refering to perturbation methods.
These mathematical techniques were developed approximately one century ago by scientist focussed on dynamic systems mathematics or working on engineering and physics where several non analytical solvable systems of equations are the base of development to their respective areas (for example, fluid mechanics).
Perturbation methods, also called asymptotic, deal with different ways to get very valuable information of a system without solving their equations. These techniques introduce which is called "perturbed solutions": a solution is assumed depending of a very small variable (usually is called $\epsilon$) and other desired parameters. The structure of these solutions depends of which type of expansion we are planning to introduce. Typical expansions are for example power series. If U is a solution of the equation, then we could assume that:
$$U=U_0+\epsilon^m U_1 + \epsilon^n U_2 + ...$$
where $U_1$,$U_2$, etc. are solutions that appear when we assume order $\epsilon^m$, $\epsilon^n$, etc.
As this solution satisfy the equation, we can just substitute on it and we can obtain a system of equations at different $|epsilon$ orders that we can solve them to get the asymptotic approximation. We can also perform a nonlinear dynamic study to get stability values, nodes, etc.
As it can be seen, perturbative methods are extremely useful, but its application is not so immediate. Use this method with differential equations is a very hard task, even impossible for those not accostumed to work with this type of methods. That's the reason for which only few people in the world are really experts in this field.
In the following posts I will explain a little bit more these kind of methods, and some examples of application.
Today I'm going to talk about a topic which in my opinion it's fascinating and very imporant to be known for all those who want to practice cutting edge science. I'm refering to perturbation methods.
These mathematical techniques were developed approximately one century ago by scientist focussed on dynamic systems mathematics or working on engineering and physics where several non analytical solvable systems of equations are the base of development to their respective areas (for example, fluid mechanics).
Perturbation methods, also called asymptotic, deal with different ways to get very valuable information of a system without solving their equations. These techniques introduce which is called "perturbed solutions": a solution is assumed depending of a very small variable (usually is called $\epsilon$) and other desired parameters. The structure of these solutions depends of which type of expansion we are planning to introduce. Typical expansions are for example power series. If U is a solution of the equation, then we could assume that:
$$U=U_0+\epsilon^m U_1 + \epsilon^n U_2 + ...$$
where $U_1$,$U_2$, etc. are solutions that appear when we assume order $\epsilon^m$, $\epsilon^n$, etc.
As this solution satisfy the equation, we can just substitute on it and we can obtain a system of equations at different $|epsilon$ orders that we can solve them to get the asymptotic approximation. We can also perform a nonlinear dynamic study to get stability values, nodes, etc.
As it can be seen, perturbative methods are extremely useful, but its application is not so immediate. Use this method with differential equations is a very hard task, even impossible for those not accostumed to work with this type of methods. That's the reason for which only few people in the world are really experts in this field.
In the following posts I will explain a little bit more these kind of methods, and some examples of application.
miércoles, 30 de noviembre de 2011
Vectorial and scalar fields
In this post I want to perform several commentaries about this basic concepts that it is not trivial for a beginner in the world of mathematics. I'm refering to scalar and vectorial fields.
It's usual that once you have finished your graduate on engineering, your concept about scalar and vectorial fields is basically the direction and sign of the magnitude. This is true, but when we are facing a rigurous work with equations it is not very useful. I will explain it more in detail, and will include several examples related with fluid mechanics, a classical field of study where both vectorial and scalar functions are used.
Scalar field: Scalar fields are those which can be defined as combination of independent variablesrelated with the system of reference. When these functions are evaluated in a point of the domain in which they are defined, they give as a result a number (2, 0.1, 7E-6). Typical examples could be the temperature or the pressure: they have a distribution in the space following a scalar field dependent only of the space and time.
Example: Pressure in a point
$$ P(x,y,z)=4x^2+3y^2-8.4xy-2z+1 $$
As it can be seen, pressure is a function of space coordinates x,y and z. Its valus only depend of the position we choose.
Vectorial field: These type of fields need for they definition a vectorial basis, that is, they have to be refered to a system of coordinates. These magnitudes habe different values for a single point depending which direction we consider (these are called "vector components"). Each vector component will be a function of other variables of the system. Notice that, as we are using a basis, direction and sign appears naturally associated with vectorial fields.
Example: Velocity of a fluid particle in a region.
$$u=[u_x,u_y,u_z]=\left[4x^2-9y+z,3z^4-2,2x+4y^3\right]$$
As it can be seen, u vector have three components, according with space dimension in which field is described. Each component is at the same time a function of x, y and z. Global velocity of each particle will be the sum of all components, but in a vectorial way: modulus will be (in cartesian coordinates) the square root of the squared sum of each component, and direction will be the respective unitary vector representing direction and sign.
Maybe this difference is obvious, but I think it worth to mention here: this will suppose a difference when we start to practice tensorial calculus.
In Further posts I will write a small table with different results of operators calculated for tensorial and scalar magnitudes.
jueves, 24 de noviembre de 2011
Latex writting for scientific texts
Hello everybody
For those who make use of Latex in your scientific documents but don't know how to upload them properly on your blog or website, I want to inform about a webpage in which it is explained easily how to do it:
http://watchmath.com/vlog/?p=438
The process is very easy. Just copy the script that appear in the author's web, but changing only a line. You should remove
http://www.watchmath.com/cgi-bin/mathtex3.js
and copy instead:
http://www.watchmath.com/main/cgi-bin/mathtex3.js
That's it ! Latex on your blog.
If you are not familiar with Latex format, I will give you some examples of what kind of format generate. In case you are interested on it, just google it. There are thousand of webs and manuals of how to use Latex. It requires some efforts to learn the basic commands, but once it is done the system is much powerful that conventional word processors when writting scientific notation. Actually I'm not using word anymore!!
$$ F(x,y)=\int_{a}^{b} g(x,y) dx $$
$$\nabla \cdot \gamma = \frac{\partial \gamma}{\partial x}+ \frac{\partial \gamma}{\partial y} $$
THE SERVER HAS CHANGED. SCRIPT MUST BE UPDATED. SEE FOLLOWING POSTS FOR A SOLUTION
Basic details of Divergence and Curl (I)
For those whe study tensor mathematics these concepts are already familiar. However, when should have to realize that they also have a physical meaning when applied to particular cases.
- Divergence is always related with normal component of a certain flow trespassing the surface of a certain volume (variation of a certain magnitude per unit area and time). A direct consequence of this imply that if we measure the income and outcome contributions of this magnitude through its surface, this balance will be directly related with the value of divergence: If divergence is zero the net contribution of magnitude in this volume is exactly zero (the same amount is incoming that outcoming). If divergence is positive more flux of magnitude is outcoming in the selected region that incoming, and negative divergence will imply the opposite.
A classic example would be the magnetic field, a vectorial field. If we take a control volume around a magnet it can be seen that divergence of the magnetic field is zero. Knowing that a magnet is in fact a source of the magnetic field, zero divergence tell us that "streamlines" of the field must be closed: streamlines are generated in a point of the magnet, but they must flow to the other pole of the magnet.
Other well known example is fluid mechanics. Zero divergence around a control volume imply mass conservation, and flow conservation with almost incompressible fluids like water.
It is remarkable that the divergence of a vectorial field is a SCALAR.
Curl also have a specific meaning when we are talking about vectorial magnitudes. This operator is linked with tangential component. To say some examples, in fluid mechanics curl operator appear when we define the concepts "flow circulation " and "vorticity". The result of applying curl to two vectorial field is another vectorial field orthogonal to the previous ones.
Suscribirse a:
Entradas (Atom)