Liquids form a free surface (that is, a surface not created by the container) while gases do not. The distinction between solids and fluid is not entirely obvious. The distinction is made by evaluating the viscosity of the substance. Silly Putty can be considered to behave like a solid or a fluid, depending on the time period over which it is observed. However Silly Putty is correctly termed a viscoelastic fluid.
Fluids display such properties as:
- not resisting deformation, or resisting it only lightly (viscosity), and
- the ability to flow (also described as the ability to take on the shape of the container).
These properties are typically a function of their inability to support a shear stress in static equilibrium.
Solids can be subjected to shear stresses, and to normal stresses - both compressive and tensile. In contrast, ideal fluids can only be subjected to normal, compressive stress which is called pressure. Real fluids display viscosity and so are capable of being subjected to low levels of shear stress.
In a solid, shear stress is a function of strain, but in a fluid, shear stress is a function of rate of strain. A consequence of this behavior is Pascal's law which describes the role of pressure in characterizing a fluid's state.
Depending on the relationship between shear stress, and the rate of strain and its derivatives, fluids can be characterized as:
- Newtonian fluids : where stress is directly proportional to rate of strain, and
- Non-Newtonian fluids : where stress is proportional to rate of strain, its higher powers and derivatives.
The behavior of fluids can be described by the Navier-Stokes equations - a set of partial differential equations which are based on:
- continuity (conservation of mass),
- conservation of linear momentum
- conservation of angular momentum
- conservation of energy.
The study of fluids is fluid mechanics, which is subdivided into fluid dynamics and fluid statics depending on whether the fluid is in motion.
External links
This article is licensed under the GNU Free Documentation License.
Last updated on Wednesday October 08, 2008 at 23:59:08 PDT (GMT -0700)
View this article at Wikipedia.org - Edit this article at Wikipedia.org - Donate to the Wikimedia Foundation
FLUID (Fast Light User Interface Designer) is a graphical editor that is used to produce FLTK source code. FLUID edits and saves its state in text .fl files, which can be edited in a text editor for finer control over display and behavior.
After designing the application, FLUID compiles the .fl file into a .cxx file, which defines all the objects from the .fl file, and an .h file, which declares all the global ones. FLUID also supports localization of label strings using message files and the GNU gettext or POSIX catgets interfaces.
A simple program can be made by putting all non-interface code (including a main function) into the .fl file, thus making the .cxx file a single source file to compile. Most programs are more complex than this, so other .cxx files can be written that call the FLUID functions. These .cxx files must #include the .h file, or they can #include the .cxx file so it still appears to be a single source file.
Normally the FLUID file defines one or more functions or classes, which output C++ code. Each function defines a one or more FLTK windows, and all the widgets that go inside those windows.
Widgets created by FLUID are either "named", "complex named", or "unnamed". A named widget has a legal C++ variable identifier as its name (i.e. only alphanumeric and underscore), and is defined by a global variable or class member that will point at the widget after the function defining it is called. A complex named object has punctuation such as '.' or '->' or any other symbols in its name. In this case, FLUID assigns a pointer to the widget to the name, but does not attempt to declare it. This can be used to get the widgets into structures. An unnamed widget has a blank name and no pointer is stored.
Widgets may either call a named callback function that you write in another source file, or you can supply a small piece of C++ source and FLUID will write a private callback function into the .cxx file.
This article is licensed under the GNU Free Documentation License.
Last updated on Sunday August 10, 2008 at 15:51:45 PDT (GMT -0700)
View this article at Wikipedia.org - Edit this article at Wikipedia.org - Donate to the Wikimedia Foundation
Copyright © 2009, Dictionary.com, LLC. All rights reserved.