FLUID (Fast Light User Interface Designer) is a graphical editor and GUI builder 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 one or more FLTK windows, and all the widgets that go inside those windows.
Widgets created by FLUID are "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 one writes in another source file, or one can supply a small piece of C++ source and FLUID will write a private callback function into the .cxx file.
Homework Statement
A steel container is completely filled with gasoline, and then sealed. The temperature is then increased 11 degrees C. If the bulk modulus of gasoline is 1.90 \times {10^9}Pa, find the increase in pressure of the gasoline if:
(a) The expansion of the container is considered...
Homework Statement
A piston of cross-sectional area a is used in a hydraulic press to exert a small force of magnitude f on the enclosed liquid. A connecting pipe leads to a larger piston of cross-sectional area A (the figure). If the piston diameters are 3.63 cm and 50.7 cm, what force...
Homework Statement
Let a spherical object move through a fluid in R3. For slow velocities, assume Stokes’ equations apply. Take the point of view that the object is stationary and the fluid streams by. The setup for the boundary value problem is as follows: given U = (U, 0, 0), U constant, find...
hello!
I think Bernoulli's equation it's just an equation of conservation of energy. Am I right?
but I don't understand how to apply the conservation of energy principle exactly.
can you help me please?
I get it that if the fluid moves, it has kinetic energy which is 1/2mV^2.
I also get...
Hey, I've been wondering about the behavior of flowing charged particles lately. In particular, imagine that I have a tank of charged fluid.
Lets assume this charge density is 1 C/cm^3. I then allow the fluid to flow through a pipe of 1 cm^2 cross-sectional area at a rate of 1 m/s. Thus there...
Homework Statement
Homework Equations
ρ=789, μ=.0012
The Attempt at a Solution
From the energy equation we get hf=0.9
We know that hf=f(L/D)(V^2)/(2g)
[sorry don't know how to use latex after they removed the bar on the right]
Now I can substitute V for Q, but I'm stuck with f and Q as...
So this is about a modelling project I'm doing.
If you have an object that was being towed in water and the towing force is suddenly removed. There is a force F=1/2(density of fluid)(C constant)(A)V^2 that acts on the object. I am trying to find the distance X it will take for the object to...
I don't understand how they got the "position of individual forces".
For F1, I'm guessing they used a pressure diagram and that's why it's 2/3 from the tip of the triangle. But why wouldn't the force act on the centroid for this square section (thus its 3.5/2)?
But for position of F2 (y2)...
I am just starting on this subject and I am trying to get a feeling for the concepts. One thing that confuses me a lot is the idea of an advective acceleration. We have that the rate of change of the velocity in a fluid is given by the material time derivative:
Dv/Dt = ∂v/∂t + (v⋅∇)v
Now in...
I am running a simulation on a flat plate heat exchanger and the solver is coming up with some error messages. The first says that a vortex crosses the pressure opening and the second says that my heat transfer rate goals are invalid. How can I get the heat transfer goals to be valid as I need...
Have a look at this link guys: http://ocw.mit.edu/courses/mechanical-engineering/2-016-hydrodynamics-13-012-fall-2005/readings/2005reading2.pdf.
Could someone explain the term − 1/2 ρ(b∆x∆z) in equation 2.2? I don't understand how does that represent force on the plane along z-axis.
Hi all,
I have really a confusion between subsonic and supersonic speed evolution when the area decrease or increase
I have a problem to understand why in supersonic regime the velocity evolution in a nozzle is adverse of the subsonic regime?
for example in subsonic regime, when the area...
Homework Statement
A cube of ice is floating in water such that some part of the ice is submerged. Oil is poured on the water.( so water on the bottom, oil on top and ice in between). When the ice melts completely, the level of oil-water interface ______(rises/falls) and the top level of oil...
Hi, I'm working on a project and need a bit of help, since I don't want to kill myself.
My question is this: If I have a cylindrical tank (think a big scuba tank) half full of liquid, half full of gas (let's just say it's water/air) and start heating up the liquid, I know that pressure will go...
Homework Statement
A glass full of water has a bottom of area 20 cm 2 , top of area 20 cm 2 , height 20 cm and volume half a litre.
(a) Find the force exerted by the water on the bottom. (b) Considering the equilibrium of the water, find the
resultant force exerted by the sides of the glass on...
Hello, everyone, please forgive me for my poor English.
I'm a sophomore, major in Astronomy. I've finished Hassani's book(Mathematical Physics). And I've learned Real variable function and functional analysis (I do not know what exact name of this course)
I'd like to buy a textbook with...
Hey all, I am having trouble getting to the answer of the attached file below. It would be appreciated if anyone had some tips on getting to the answer.
As I've been reading up on fluid mechanics recently, I've discovered several different molecular models which attempt to explain heterogeneous fluid flow from a molecular level. Classical fluid mechanics assumes that hard body approximation- that atoms are hard spheres knocking into each other...
Homework Statement
We are in a planet where the gravitational acceleration is 1 ms-2.
Tankers fly over the surface of a liquid ammonia lake (at 239K) at a height of 40m. A special, insulated, frictionless tube is lowered into the ammonia 1m below the surface.
We want to draw up ammonia through...
1. Homework Statement
Homework Equations
CFD
The Attempt at a Solution
I'm a bit confused by this question.
So at first what I do for the problem on the left, I find the changes in the velocities in X and and Y on all four sides.
I notice that the values on the diagram to the left are...
Homework Statement
Homework Equations
Conservation of linear momentum for fluids
The Attempt at a Solution
This seemingly simple problem has me confused. First of all, I want to set up the sum of the foces as:
-Min + Mout -Fx = 0
So first of all, not only does my Fx term have the wrong...
Any thoughts on this book? I'm interested in a fluid mech book for physicists, this one looks good but I can't find any reviews on it. You can suggest other books as well, as long as they have available new editions.
While the sound waves travel in a medium, let's say a fluid, what is the difference between fluid pressure and acoustic pressure ? Are these entities same?
http://imgur.com/rE7jLlC
When setting up the sum of forces I had an unknown value for the spring, buoyancy, and normal force. What I tried was setting up a triangle to find the length of the spring, which was 1.039m with that I could find the force acting on the spring, 4.3N, which would be the...
Hi, I'm attempting to do a question involving blood flowing through a blood vessel and I'm incredibly stuck and would appreciate some help. The question is as follows:
'A simplified model of blood flow through the human body makes the approximation that the flow I is proportional to the pressure...
Question: The height of the given vessel is h,and the width of the given vessel is b (as given in the diagram). The density of the liquid is r.Find the force exerted by the liquid on the slant wall.
Relevant formulae : P = F/A
F = Vdg
An attempt at the solution...
Homework Statement
A piston 10 is coaxially in diameter moves within a cylinder whose inner diameter is 10.006 in;
The annular space between piston and cylinder is filled with oil having a kinematic viscosity is 0.004 feet ^ 2 / s and specific gravity of 0.85
If the piston makes its way with a...
Hi, everyone.
I am learning fluid mechanics. One book says that for a infinitesimal fluid cell, surface force includes
1) the pressure, which is imposed by the outside fluids surrounding the concerned fluid cell
2) the shear and normal stress, which result in shear deformation and volume...
Homework Statement
Homework Equations
Navier-Stokes
The Attempt at a Solution
Not really trying to solve a problem, trying to understand what is going on in my textbook. So look at the stuff in red first. I see where all that is coming from, it's clear to me. However, the stuff in green...
So my understanding is that capillaries leak out their blood plasma containing sugar and other nutrients insulin (when sugar present)near body cells, and this is what comprises interstitial fluid.
But what if no insulin is present (Type 1 diabetes) or insulin creates no response (Type 2...
Homework Statement
A venturi tube is a means of measuring fluid velocity. One particular device consists of a level, circular pipe of radius 5.7 cm which at one point narrows to a radius of 3.7 cm. An ideal, incompressible liquid flows through the tube and the pressure difference between the...
Homework Statement
a concrete dam, 20m in height, has a vertical upstream face. if the water level is coincident with the top of the dame, calculate and plot the pressure intensity at 4m intervals over a vertical and thus determine the total hydrostatic force acting per unit width. Show that...
Hi,
I am doing an introductory course on fluid mechanics, and I'd like some intuition (that's why I'm posting on the engineering forums and not on the math forums, even if I'm studying for a degree in math) about the concept of the total derivative and, particularly, its convective component...
Homework Statement
Determine the speed of a fluid particle at the origin and at a point (1,-2,0) for each of the following velocity fields when t = 2s. All distances are in meters and t is in seconds.
V = (x+2)i + xtj - zk m/s
Homework Equations
V x dr = 0
dV/dt = u(dV/dx) + v(dV/dy) +...
Me and my friends have been trying (b) for soooo long! we have gone to PhD students and some fluid dynamic doctors for held and they cannot figure this out.
1. Homework Statement
2) This question concerns the design of a ‘micro-chemostat’ device.
E. coli exhibiting chemotaxis can swim up to...
Homework Statement
Homework Equations
Fluid Mechanics
The Attempt at a Solution
Lets start with the easy part:
The pressure of the air is constant so the pressure will act as if it's a concentrated force on the center of gravity of the gate.
F = PA = (10,000Pa)(.3)(.6)=1800N
The moment...
Homework Statement
How does fluid move from low pressure area in a Venturi to a high pressure area, which is downstream from the Venturi.
Homework EquationsThe Attempt at a Solution
Not understanding the mechanism here, as I thought fluids only go from high pressure to low presure. Since the...
Homework Statement
Homework Equations
Hydrostatic equation
The Attempt at a Solution
Call length from 2 to the Hg "h".
Yhg = specific weight of Hg, from book = 846lbf/ft^3
Yw= water = 62.4 lbf / ft^3
Then
P2 = P1 + Yw(5sin45 + h + .5) - Yhg(.5) - Yw(h)
Then P2 - P1 = simplify and plug in...
Homework Statement
Hi guys,
My first post here, I hope someone can help me out with a quick fluid mechanics problem.
I'm looking to calculate the pressure increase inside a closed tube full of water when the tube is crushed and therefore its volume reduced.
The tube is filled completely...
Homework Statement
Homework Equations
τ = μ (du/dy)
The Attempt at a Solution
For part B)
dM = τr dA
τ = μ (rΩ/Δr)
∫ (μrΩr2πr / Δr)dr = μR4πΩ / 2Δr
pretty sure that's correct.
I'm confused for part A though.
I want to set it up as
dM = τR dA = τR (2πRdL)
and
τ = μ (RΩ/L)...
Homework Statement
"Inverted siphons were used by the Romans to cross some valleys. If the height difference between the top of the valley and the bottom is 10 meters, the pressure in the pipe at the bottom of the valley will be ____.
Homework Equations
Bernoulli's Equation
P1+(pv^2)/2 + pgh1...
So I'm more into electricity, so fluids is not really a forte at all. But I have been thinking about this, and there must be some fundamental issue in the way that I view fluid pressure.
Conditions:
1. I have a metal pipe, incompressible
2. There is water in the pipe, (incompressible? ...
Homework Statement
For low-speed(laminar) , steady flow through a circular pipe, the velocity u varies with radius and takes what form? Please see this link for picture of the pipe...
Homework Statement
Homework Equations
Fluid Mechanics
τ =μ (du/dy)
The Attempt at a Solution
I got far enough to write down
dM = μ (Ωr/tanθ) dA
from just substitutions, easy enough.
I get confused when I'm solving for the differential surface area. I somehow need the dA for a cone.
For...
I have been searching for an explanation of how a change in pressure propagates thru a fluid to become isotropic. My question is that if the time scale measured is small enough ( much less than the distance divided speed of sound ) will we see the pressure change have an initial direction and...
Homework Statement
In a horizontal rectangular open channel 20 m wide the water depth is 9 m. When a
smooth hump 1.5 m high is introduced in the channel floor, a drop of 1 m is produced in
the water surface. What is the flow rate, neglecting energy losses? It is proposed to place
a pier at the...
Homework Statement
A spherical shell of mass M and radius R is completely filled with a frictionless fluid, also of mass M. It is released
from rest, and then it rolls without slipping down an incline that makes an angle θ with the horizontal. What will
be the acceleration of the shell down the...
Hi,
When a hot and dense fluid suddenly expands, how much can it cool down.
Lets take for example an expansion valve from an AC, does the fluid do work when passing through the valve or does it not even need to do work in order to cool down.
What is the lowest temperature that the fluid can...