What is Fluid: Definition and 1000 Discussions

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.

View More On Wikipedia.org
  1. X

    Fluid mechanics sinking barrel

    Homework Statement Suppose a cylindrical barrel falls off a ship and sinks to the bottom of the sea at a depth of 1.61 km. Assume that the seawater is incompressible, so that its density at the bottom of the sea is the same at the surface :1020 kg/m^3 If the pressure inside the barrel is...
  2. X

    How Do You Calculate Net Inward Force on a Submerged Barrel?

    Help with fluid mechanics!? Suppose a cylindrical barrel falls off a ship and sinks to the bottom of the sea at a depth of 1.61 km. Assume that the seawater is incompressible, so that its density at the bottom of the sea is the same at the surface :1020 kg/m^3 If the pressure inside the...
  3. C

    Calculate the volumetric flow of a fluid

    How could I calculate the volumetric flow of a fluid due to the weight of a piston in a cylinder? At first moment i I thought the Hagen-Poiseuille equation, but I'm not sure. Any suggestions?
  4. F

    Height of fluid in cylinder

    Thanks in advance! I have problem that is causing me a headache to no end. In a cylinder, if one knows the total volume of cylinder and total volume of fluid in said cylinder, how would the height of this fluid be computed? I have no problems calculating volumes based on height, but the other...
  5. R

    High density, Less-Volatile, High Heat capacity Fluid

    hey :smile: I am a college student and am looking for a liquid having the following properties at very low temperatures (probably around 100-150 K) - 1) Very high density 2) Very high temperature of vaporization 3) Less- Volatile 4) High specific heat capacity
  6. C

    Influence of magnetic fluid in magnetic force

    Looking for a way to increase magnetic forces in electrical devices, an option is reduce the air gap, but some times it is not a practicable solution. The question is what happened if we put a ferrofluid between the magnets? Imagine the following situation: a closed volume composed by a...
  7. C

    Minor head loss for turbulent vs. laminar fluid flow

    Hi, I need clarification on the difference in head loss for turbulent flow and laminar flow. I understand how the head loss due to friction is different for the two regimes. For friction head loss, the friction factor is 64/Re for laminar flow, and a more complex formula for turbulent flow. I...
  8. B

    How Does a Fluid Oscillate in a U-Tube with Mercury?

    A u tube open at both ends and a uniform cross section contains a mas of mercury,m and a density of 'rho' if the level is slightly disturbed show the surface oscillates with a periodic time of Tn=2pi sqrt[(m/2g'rho'a)] where a is the cross sectional area. i understand how to do this...
  9. R

    Air Flow through cooling tower- fluid mechanics problem

    Hey everyone! I am working on improving natural draft counter flow cooling tower efficiency as my final year B.E. project. I came across a research paper that said that at transverse cross section of the tower, above drift eliminators, the air velocity decreases from the periphery to the...
  10. M

    How does photochromic fluid work

    Hi all, I purchased this photochromic fluid I have been trying to get to the bottom of how it works. From wikipedia http://en.wikipedia.org/wiki/Photochromism For example, the spiro form of an oxazine is a colorless leuco dye; the conjugated system of the oxazine and another...
  11. T

    Boundary Conditions for an inviscid fluid at a fixed boundary

    This is my first post so I hope this in the right place. I am fairly sure this is quite a straight forward question but I having trouble working out the details of it. "State the boundary conditions for an inviscid fluid at an impermeable fixed boundary x_3-h(x_1,x_3)=0 where we do...
  12. B

    Calculating Fluid Force of Triangle Submerged in Water

    Homework Statement Find the fluid force of a triangle with base of 6 ft and height of 4 ft submerged vertically into a body of water,vertex down, to a depth of 3 feet. Homework Equations from c to d W ∫ h(y) L(y) The Attempt at a Solution I set up the triangle on an x and...
  13. Entanglement

    Exploring Superfluids: Physical Explanation and Properties at Zero Kelvin

    Some fluid act weirdly at zero kelvin like Helium 1- it loses viscosity 2- flows upwards along the wall against gravity ! And there is a property I'm not sure about, that it can't be held in a container because it leaks out of it. However what's the physical explanation for all of that...
  14. J

    What can a PH meter tell you about the quality of fluid

    What can a PH meter tell you about the quality of fluid it is measuring?
  15. A

    Hydrostatic Fluid- Linearly Accelerating Slope

    Homework Statement An open rectangular tank contains water up to about half of its depth. This tank accelerates at a=2.20 m/s^{2} up a slope α (alpha), which causes the free water surface to form an angle θ (theta) with the original horizontal plane. What is the α angle of the slope?Homework...
  16. T

    What is the Relationship Between Pressure and Height in Fluid Mechanics?

    The correct answer to this problem is h2 = h1 but I don't get it. According to what I understand, F=p/A So for the Tube on the left: F1 = P/A = (\rho*g*h1)/A1 For tube on the right: F1 = P/A = (\rho*g*h1)/3*A1 I get h2=3h1 (i know if you think about it this does not make sense...
  17. P

    Finding A_n in a Fourier-series Approach to Viscous Fluid Slowing Down

    Homework Statement A fluid of viscosity \nu is rotating with uniform angular velocity \Omega inside a cylinder of radius a that is also rotating. At time t = 0, the cylinder is brought to a rest. The circular motion of the fluid is gradually slowed down due to the viscosity; show that u_\theta...
  18. T

    Toppling of cylinder containing fluid

    Homework Statement A light cylindrical vessel of radius r is kept on a rough horizontal surface with sufficient friction so that it cannot slide but can topple. It is filled with water up to a height 2h and a small hole of area a is punched in it so that the water coming out of it falls at the...
  19. W

    Linearly accelerating hydrostatic fluid

    Homework Statement A cart is acclerating to the right with a=3m/s^2. Fluid is in hydrostatic state. Find the force on the back wall. Cart goes .8m into the page. In the image dotted line is free surface when cart is stationary. Homework Equations \vec{\nabla P}=\rho (\vec{g} -...
  20. L

    Aerodynamics HW - fluid particles acceleration based on stream functio

    Homework Statement prove that with flow in a corner, with stream function ψ=Axy, particles are accelerating per \frac{DV}{Dt}=(A2(x2-y2))/r; A=const; r-distance from the center of the corner Homework Equations Vx=U=\frac{∂ψ}{∂y} . . Vy=V=-\frac{∂ψ}{∂x}...
  21. J

    What would happen to the accuracy of a float gauge if the fluid it is

    What would happen to the accuracy of a float gauge if the fluid it is measuring is heated?
  22. W

    Damping Force in a piston: Ideal Gas versus a Fluid

    I was in my physics of the human body class and we got on the topic of pistons. It was given to me that the dampening force pertaining to such a piston filled with a gas is proportional to the square of the velocity of the piston; however, for fluids it was given as simply proportional to the...
  23. W

    Moment produced by a fluid of varying density

    Homework Statement Find F, the force acting at the top of the gate. The gate is 2m high and 2m into the page. It is hinged at the bottom (red dot in the diagram) Density of fluid varies linearly. 1000 kg/m3 at the top and 1600 kg/m3 at the bottom (depth of 4m) Homework Equations...
  24. T

    Basics of Fluid Mechanics and Pressure

    Hello I am having difficulty in comprehending the basics of fluid mechanics . I have few questions which I would like to put one at a time , so as not to create any confusion . In the following attachment , a container with a liquid rests on a surface .I would like to understand what are...
  25. P

    Fluid Mechanics and Venturi meter

    Homework Statement A Venturi meter is constructed with an inlet diameterof 100 mm and a throat diameter of 40 mm. The meter must be calibrated prior to leaving the factory. The meter is installed in a 100 mm diameter water main with a...
  26. N

    Fluid Mechanics and order of magnitude calculation

    Hi In my lecture notes we making some calculations and all terms \mathcal O(M^3) are to be thrown away. Here M is the Mach number. Now, there is the expression (u denotes the velocity): uu\partial_t \rho \approx \rho_0 uu\nabla u which in my notes are thrown away because they claim it is...
  27. N

    Solving Fluid Dynamics Pressure at Different Speeds

    Homework Statement If the pressure reading of your Pitot tube is 17.0 mm Hg at a speed of 150 km/h, what will it be at 700 km/h at the same altitude? Homework Equations The only eq I could think if is p = p2+ 1/2 density (v2^2 - v1^2) But I don't know the density The Attempt at...
  28. J

    Temperature of fluid flowing through pipe

    Is there a mathematical relation for the temperature change when a fluid flows through a pipe from one end to another? I am not aware of any equation in thermodynamics for this, but I would guess the following parameters are important : 1. cross-sectional diameter of pipe 2. viscosity 3...
  29. gfd43tg

    Pressure drop at power station pumping power law fluid

    Homework Statement The Black Mesa pipeline transports 660 tons / hr of solid coal ground to 8 mesh (2.4 mm) as a 50 wt % slurry in water with an estimated sg of 1.26 for 273 miles across northern Arizona. The pipeline ID is 18 inches and the slurry flow rate (coal and water) is 4200 gal/min...
  30. B

    Understanding Fluid Pressure: Get Help Here!

    Homework Statement Homework Equations fluid pressure = fluid density * depth * gThe Attempt at a Solution My understanding is that fluid pressure at any two points at the same depth is equal, for a fluid at rest. But because one end is open, the pressure at point C is less than B and equal to...
  31. I

    Very basic fluid statics and dynamics question

    consider the image on the drawing at the top (above the yellow arrow) if i had some non-compressible fluid enclosed in a pipe like container that looped back in on itself (as shown in figure), and if the container was non-elastic, when i rotate this container filled with fluid such that...
  32. M

    How Do You Calculate Shear Stress in a Flowing Fluid?

    Homework Statement Water at 20 degrees C flows in a 0.8cm diameter pipe with a velocity distribution of u(r) = 5[1-r2/(16x10-6)]m/s. Calculate the shear stress on (a) pipe wall (b) at a radius where r = 0.2 cm (c) at centerline of pipe Homework Equations Shear stress = viscosity x du/dr...
  33. N

    Determining volume of fluid dispersed from a broken pipe

    I have the pipe size, flow rate, and a duration. How can I figure out the amount of fluid that was released from the pipe?
  34. S

    Fluid dynamics, Pipe Flow, Hagen Poiseuille, Darcy's equation

    Homework Statement A water injection line is made from smooth capillary tubing with inside diameter D = 25.0 mm . If the length of the pipe is 0.75 m and assuming laminar flow is present up to Re = 2000, find (i) the maximum average velocity at which the flow is laminar (ii) the pressure...
  35. W

    Fluid Mechanics: Tilted Axes and Weight of Gate

    Homework Statement AB is homogeneous with mass of 180 kg, goes 1.2m in the page and is hinged at A and resting on aa smooth bottom at B. All fluids at 20 C. Find height of water that will result on 0 force at B Homework Equations M_s = \int\int_s \ (\vec{r} \times \hat{n} )PdA...
  36. B

    Calculating Air Speeds in a Venturi Tube Using Conservation of Fluid Mass

    Homework Statement Air is blown through a circular and horizontal Venturi tube, as shown in the figure below. The diameters of the narrow and wider sections of the tube are given, and the height h of the mercury column is measured to be 1.00 mm. What are the air speeds in the wider and the...
  37. F

    Fluid Inside an Ideal Sphere: What Happens?

    Hi all! Imagine you have an ideal sphere (made of steel or plastics). Then fill it completely with some fluid, e.g. water. Then rotate it very fast. What happens to a fluid inside? I suppose that it will try to change its shape (from spherical to flat). But there is no space for any size...
  38. S

    Mechanism of Oobleck - Non-Newtonian Fluid

    Hi, What is the molecular-level mechanism of shear-thickening of oobleck (cornstarch-water paste)?
  39. G

    Not enjoying thermo, will I enjoy fluid mechanics?

    I'm pondering courses for the autumn and I'm at a bit of a crossroad. Doing an intro thermodynamics class right now which involves all the stuff I don't really enjoy - measurements, looking stuff up in tables, memorization, etc. Very non-theoretical. It feels like an AP chemistry class...
  40. S

    Why you have to infuse 3 times the fluid loss with crystalloids?

    Hello everyone I still don't understand crystalloids 1) Let's say someone lost 100 ml of blood due to accident. If you are giving crystalloid therapy, why do you have to infuse 3 times the amount. What I think is when you give crystalloids IV, they go into extravascular and...
  41. I

    Fluid Mechanics, simple task.

    Homework Statement Task number 2. The problem is that my solution is wrong but the lecturer didnt want to explain what is wrong, she insists on doing it by myself. But to be honest I'm not really good at it and I just need someone either explain it or solve or at least check it and tell me...
  42. F

    Hurricane Fluid flow, torque, cross product

    Homework Statement In 1993 the radius of Hurricane Emily was about 350 km. The wind speed near the center ("eye") of the hurricane, whose radius was about 30 km, reached about 200 km/h. As air swirled in from the rim of the hurricane toward the eye, its angular momentum remained roughly...
  43. R

    Fluid Mechanics: Fluid in a Tube

    Homework Statement The problem depicts a tube shaped like a "U". The arms of the tube are 0.3m in height and the horizontal part of the tube is 0.6m long. The left arm of the tube is open while the right arm of the tube is closed. The problem states that the liquid in the tube is of density...
  44. 5

    Fluid mechanics-Total energy line of static system

    I have two reservoirs, connected by two pipes. The first reservoir is higher in elevation than the second. If the system is full of static water, what would the total energy line look like? Since the velocity of the flow through the system is 0, would the total energy line just be a straight...
  45. M

    Can You Connect Two Aquariums with a Tube Without Causing Overflow?

    Hello, I have two fish tanks next to each other. One is big (36 gallons, about 2 feet tall), one is smaller (10 gallons, about a foot tall). I want to make a connective tube so that my eel can swim between the two tanks but I don't want either tank to overflow. I am not adverse to raising the...
  46. B

    Fluid Mechanics and perpendicular force

    I was just wondering why a body immersed in a fluid at rest experiences a perpendicular force on its surface? Why can't there be a component of force in parallel direction to the surface ? I read somewhere that this would cause the fluid to flow parallel to the surface but i don't quite...
  47. J

    Compressible fluid through a narrow tube.

    Homework Statement For a flow of a compressible fluid through a narrow tube, the following statement is correct a) the volume of the fluid crossing any section of the tube is constant. b) density of the fluid is independent of pressure. c) mass of the fluid crossing any section of the...
  48. NATURE.M

    Fluid Statics Problem: Calculating Resultant Force on a Dam - Solution Attempt

    Homework Statement Water stands at a depth D behind the vertical upstream face of a dam. Let W be the width of the dam. Find the resultant horizontal force exerted on the dam by the water. The Attempt at a Solution So I know how to solve the problem, I was just unsure of whether we...
  49. P

    Fluid subject to acceleration

    While working on fluid dynamics problems I noticed that the incline angle sometimes starts at middle while other times starts at one end. Is there an explanation for this? I know the slope =(linear a)/(gravitational g)
  50. J

    Why Does Bernoulli's Equation Seem Incorrect for a Rotating Fluid in a Bucket?

    Homework Statement What is wrong with the following argument from Bernoulli's equation? Suppose a fluid in a bucket is rotating under gravity with constant angular velocity W so that velocity is: u = (-\Omega y,\Omega x, 0). Then: \frac{P}{\rho} + \frac{u^2}{2} + gz = constant...
Back
Top