Coriolis Forces
A derivation for coriolis forces can be found be found on the wikipedia page for fictitious forces.
In general for an accelerating reference frame in rectangular coordinates the factious forces are given by:
Where:
he first term is the Coriolis force, the second term is the centrifugal force, and the third term is the Euler force. When the rate of rotation doesn’t change, as is typically the case for a planet, the Euler force is zero.
Looking specifically at the Coriolis force:
which gives in (east-west,north-sourth, height) coordinates:
Where is the latitudinal coordinate (equator=zero latitude).
In general the cross product for a coordinate with orthonormal direction vectors is given by:
http://en.wikipedia.org/wiki/Coriolis_effect#Formula
since the basis direction vectors are orthogonal in hopkins and simmons coordinates write write:
(note with regards to weather the system is right handed we can choose the direction of the logitudanal cordinate to make it right handed.)
Just to recall from the post (Hoskins and Simmons (1974) Coordinate System):
where theta is the latitude.
Where
is the surface pressure and
is the vertical coordinate.
is the longitude.
Additionally:
U is the longitudinal component of the velocity
V is the latitudinal component of the velocity
W is the vertical component of the veolicty (not used in Hopkins and Simmons 1974)
Now the angular velocity of the earth in Hopkins and Simmons is given by:
Where the sign of is positive for the northern hemisphere and negative for the southern hemisphere.
Therefore:
Some comments:
The result obtained is essentialy the same result that one would get if, they took the(east west,north south, altitude) coordinate system and replaced with
.
The only differences are the order and sign of the components. These are the only differences because both coordinate contain the same unit vectors. In my example of a Hopkins and Simon’s like coordinate system I used a different order for the components then was used in my example for the (east-west, north south altitude) coordinate system. This will effect the sign in the cross product.
I wrote the z component of the angular velocity as to emphasize that the positive direction for the z component in Simpons coordinate system is downward. However, the actual angular rotation of the earth in simons coordinate system still have a postive
component depending on the which direction is defined as positive for the longitudinal coordinate.
The order which we specify the coordinates determines the right handedness of the coordinate system. Therefore, righthandedness is not inherently a geometric property because it depends on the order of the coordinates. For instance, in standard Cartesian coordinates
In our case the first coordinat,e , was specified in the downward direction, our second coordinate,
, points south, now using the right hand rule means that gives the positive direction for the third coordinate
in the east direction.
It is for these reasons that differences can arrise, and therefore it is very important when doing cross products to clearly express the postive direction of the coordinate unit vectors and the order of the coordinates.
Vector Operations in Hoskins and Simmons Coordinates
In my post Hoskins and Simmons (1974) Coordinate System, I derived the following scaling quantities which will be used to derive the vector operations of Grad, Div and Curl in Hoskins Coordinate system.
The coordinates in Hoskins coordinate system are dimensionless . (see nondimentionalization of Navier Stokes).
The gradient is defined as (see lectures on coordinate transforms):
The divergence is defined as:
The curl is defined by:
(note, the direction of the longitudinal coordinate is defined to obey the right hand rule)
This gives for the components
Which Simplifies to:
API/Object Viewers/Memory Mapping/
The more code a programmer can reuse the more efficient they can be. In windows this could mean reusing com/ole components and other APIs. Here are two useful programs for viewing APIs:
OLE/COM Object Explorer 1.1
http://www.softpedia.com/progDownload/OLE-COM-Object-Explorer-Download-42531.html
Windows API Viewer
http://www.activevb.de/rubriken/apiviewer/index-apiviewer.html
I was inquiring about how to manage the transfer of large amounts of data between programs and I was pointed to two interesting concepts:
All modern operating systems include a facility called “memory mapping,” which maps a range of addresses in the program’s virtual address space to a file. If you read from those addresses, you’ll get data from the file. It is up to the operating system to determine whether to load the data into RAM all at once, or to read it from the disk in chunks as necessary.
…….
If you’re trying to share large amounts of memory between two programs running on the same computer, you should note that all modern operating systems provide mechanisms for shared memory. These shared memory segments can be mapped into the virtual address space of multiple programs simultaneously. Two or more programs can read or write to the shared memory exactly as if it were normal, private memory. (But you should include some thread-safety mechanisms, like mutexes, to make sure your programs won’t step on each other’s toes.)If you’re trying to share large amounts of memory between programs running on separate computers, use MPI or some other multi-processing library.
http://www.physicsforums.com/showthread.php?t=333182
Here is what wikipedia has to say about memory maps:
The primary benefit of memory mapping a file is increased I/O performance, especially when used on small files. Accessing memory mapped files is faster than using direct read and write operations for two reasons. Firstly, a system call is orders of magnitude slower than a simple change of program’s local memory. Secondly, in most operating systems the memory region mapped actually is the kernel’s file cache, meaning that no copies need to be created in user space. Using system calls would inevitably involve the time consuming operation of memory copying.
Certain application level memory-mapped file operations also perform better than their physical file counterparts. Applications can access and update data in the file directly and in-place, as opposed to seeking from the start of the file or rewriting the entire edited contents to a temporary location. Since the memory-mapped file is handled internally in pages, linear file access (as seen, for example, in flat file data storage or configuration files) requires disk access only when a new page boundary is crossed, and can write larger sections of the file to disk in a single operation.
A possible benefit of memory-mapped files is a “lazy loading”, thus using small amounts of RAM even for a very large file. Trying to load the entire contents of a file that is significantly larger than the amount of memory available can cause severe thrashing as the operating system reads from disk into memory and simultaneously pages from memory back to disk. Memory-mapping may not only bypass the page file completely, but the system only needs to load the smaller page-sized sections as data is being edited, similarly to demand paging scheme used for programs.
http://en.wikipedia.org/wiki/Memory-mapped_file#Benefits
The windows utility to do this is called CreateFileMapping
http://msdn2.microsoft.com/en-us/library/aa366537.aspx
As for multi-processing library the following was recommended:
http://scv.bu.edu/documentation/tutorials/MPI/MPI_text.html
I haven’t found much but the following wikipedia link seems relevant:
http://en.wikipedia.org/wiki/Cluster_(computing)
-
Recent
- log(CO2) and Scary Graphs
- Numeric Solutions to The Heat Equation
- Coriolis Forces in Hopkins and Simmons Vorticity Equation
- The Cross Product in Non Orthogonal Coordinate Systems
- Lagrangian Mechanics and The Heat Equation
- Laplace Transform of f(t) Related to smoothed f(t)?
- Coriolis Forces
- Vector Operations in Hoskins and Simmons Coordinates
- API/Object Viewers/Memory Mapping/
- Defining a Microsoft access Datasource
- Fractal Modeling of Turbulence
- Hoskins and Simmons (1974) Coordinate System
-
Links
-
Archives
- September 2009 (5)
- August 2009 (19)
- March 2009 (2)
-
Categories
-
RSS
Entries RSS
Comments RSS