Fluid Definition and 1000 Threads

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. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. P

    Why Does the Incline Angle Start Differently in Fluid Dynamics Problems?

    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)
  9. 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...
  10. 5

    How can I find the mass of the object being held up by the water?

    Hi, I was wondering if anyone would be able to help me with this problem:Homework Statement I have a mass, that is being held in the air by several downwards pointing jets of water. I know the diameter of the nozzles from which the jets are flowing, and the flow (Q) from each jet, which is the...
  11. N

    Fluid Mechanics: Incompressible flow and pressure

    Most liquids can be assumed to be incompressible, since the Mach-number is much smaller than 1. That means that the density variations are negligible and from the relation between pressure p and density ρ, p=c_s^2 \rho we see that the pressure in constant as well. Now, say that I look at a...
  12. N

    Fluid Mechanics (Time derivatives)

    Hi Guys. I hope some of you are able to help me out. This is NOT a homework. I have to explain the difference between the three different rate of change (time derivatives) of a property (such as mass, momentum, internal energy, etc) in a continuum? 1 )The partial time derivative 2)...
  13. S

    Conceptual questions regarding fluid mechanics

    Homework Statement I have some conceptual question in the fluid mechanics topics which has been bugging me for quite some time now. 1) When wax is rubbed on cloth why does the cloth become waterproof 2) A weightless baloon is filled with water. What will be the apparent weight when...
  14. N

    Understanding the Speed of Sound in Fluids: An Explanation from Thermodynamics

    Hi The speed of sound in a fluid is defined as c_s^2 = \frac{\partial P}{\partial \rho} where P is the pressure and ρ the density. In my thermodynamics-course this was how we defined the speed of sound in an ideal gas, I have never read the explanation anywhere for, why this relation is also...
  15. B

    Factors Impacting Pressure in a Static Fluid

    Homework Statement what factors affect the size of the pressure at a point in a static fluid? Homework Equations The Attempt at a Solution
  16. S

    Why Is Pressure in Fluids Considered Perpendicular to Surfaces?

    why the forces in pressure always taken perpendicular? and if they are taken then to which direction? and what about presure on a curved plane?
  17. N

    Low Mach Numbers: Incompressible flow or fluid

    Hi When we talk about a fluid moving at low Mach numbers, it is said to be incompressible. But does this mean that the flow is incompressible (i.e., material derivate is zero) or does it imply that the fluid itself is incompressible (constant density)? If anybody has a reference (book...
  18. G

    Biological Fluid Dynamics - Approximate Navier Stokes Equations Solns

    Homework Statement Good evening. First post on this forum! The problem I wish to state would take too long to write by hand so I thought it best to do so via attachment. The question I am stuck on is part d and, in fact, part e also. Homework Equations All relevant equations are given...
  19. N

    Stream function/velocity potential in fluid mechanics

    Hi! When you are calculating ##\psi## or ##\phi## from the horizontal or vertical velocity components of a fluid's velocity, you end up with a constant ##C## carried along with the function. In my class, the professor just said something about them being arbitrary (I think..) and set them to...
  20. S

    Fluid Mechanic Dynamic Similarity Question

    1. Hi All I had a quiz in my fluid mechanics class with the question A ship model scale 1/25 is towed through seawater at a speed of 1m/s. A force of 2N is required to tow the model. Find the speed of the ship if the prototype is subjected to wave resistance only. 2. REm=REp...
  21. S

    Impact of a Fluid Jet Experiment

    Homework Statement We recently did an experiment involving the impact of fluid jet on both plane and cupped surfaces. See the diagram attached for the experimental set up. We were asked to 1) verify the conservation of momentum and 2) calculate the discharge coefficient of the nozzle from...
  22. A

    Fluid dynamics and particulate diffusion question

    I have two cylindrical tubes connected at a 90 degree junction. One tube has a constant flow of a laminar fluid going through it and the fluid is saturated by a soluble particulate with a known concentration. The other tube has a much smaller radius, initially has no particles and is closed at...
  23. H

    How to determine streamlines for two-dimensional steady flow of a fluid?

    Homework Statement The two-dimensional steady flow of a fluid with density ρ is given by v=K(-yex + xey) / (x2 + y2) where K is a constant (a) Can this flow corespond to the flow of anincompressible fluid? (b) Determine and sketch the streamlines of this flow. (c) Determine and sketch...
  24. H

    Incompressible fluid in horizontal test tube

    Homework Statement An incompressible fluid with density ρ is in a horizontal test tube of inner cross-sectional area A. The test tube spins in a horizontal circle in an ultracentrifuge at an angular speed ω. Gravitational forces are negligible. Consider a volume element of the fluid of area...
  25. M

    Determine velocity of a fluid - not enough info given?

    Determine velocity of a fluid -- not enough info given? Hi folks, I'm currently in an internship at Cassidian, and my supervisor has asked me to calculate the velocity of a fluid. I didn't spend too long on the subject, maybe an hour or two, but I wasn't particularly busy that day. I...
  26. A

    Best fluid mechanics texts for math majors

    Hey all. I am an undergraduate math major in my third year who is planning to do a reading course in fluid mechanics next term. I have taken courses in rigorous advanced calculus, real and complex analysis, topology, and intro ODE and PDE. I would be taking a differential geometry course, which...
  27. C

    How Much Does a Car Rise on a Hydraulic Lift?

    Homework Statement A hydraulic car lift has a reservoir of fluid connected to two cylindrical fluid filled pipes. The pipe directly below the car has a diameter of 1.8 m. the pipe o which the plunger acts has a diameter of 0.045m. the plunger is depressed a distance of 1.5m. How much does the...
  28. S

    Exploring Mars with Inflatable Balloons: Fluid Mechanics Question Help

    Fluid Mechanics Question! Help needed :( Homework Statement It has been proposed that we could explore Mars with inflatable balloons. the density of the Martian atmosphere is 0.0154kg/m^3 (ignore that this varies with temperature). Suppose we make the balloons out of a thin tough plastic...
  29. W

    Fluid mechanics, Draining a cylindrical tank, some help

    For the problem attached, I solved it and found the answer for part b : 80.21 s How to get sure or know if the answer is right or not. Thanks
  30. D

    Fluid Flow and Projectile Motion

    Homework Statement Water travels through a pipe with a radius of 1 inch at a speed of 2 m/s. There is a nozzle at the end of the pipe with a radius of 1/4 inch. The pipe is horizontal and 2m above the ground. How far does the water travel in the air before hitting the ground? r1 = 1 in. r2...
  31. W

    Fluid mechanics, help in finding the dancy friction factor

    How to find the dancy friction factor by using the colebrook white equation (not using the moody chart) ; to calculate the 1/√f = -2LOG[(e/d)/3.71 + 2.51/(Re*√f)] help please
  32. Saitama

    Finding the velocity of fluid through orifice

    Homework Statement A horizontally oriented tube AB of length ##l## rotate with a constant angular velocity ##\omega## about a stationary axis OO' passing through the end A. The tube is filled with an ideal fluid. The end A of the tube is open, the closed end B has a very small orifice. Find the...
  33. S

    Fluid flow around a sphere, what's the net force?

    Homework Statement A sphere of radius ##a## is submerged in a fluid which is flowing in the z-hat direction. There is some associated viscosity in the fluid which will exert a force on the sphere. Use symmetry to argue that the net force will be in the z-direction. Show that it will have the...
  34. Saitama

    Fluid Mechanics problem - cylinder over a orifice

    Homework Statement The horizontal bottom of a wide vessel with an ideal fluid has a round orifice of radius ##R_1## over which a round closed cylinder is mounted, whose radius ##R_2>R_1##. The clearance between the cylinder and the bottom of vessel is very small, the fluid density is ##\rho##...
  35. S

    Using Fluid mechanics to rate power output of an engine.

    I trying to come up with a way to measure the power output of an engine using a water pump, And I wanted some one to go over my math and check for flaws in my thoughts. My idea is to measure the flow rate and the pressure of the output of the water pump. Using this math to solve for power...
  36. B

    Is it difficult for engineers to switch to mathematical fluid dynamics research?

    Hi guys, I studied mechanical engineering and I am currently a graduate student (turbulence modeling). I am interested in the more formal/mathematical aspects of fluid dynamics, which are mainly worked in mathematical faculties and I would like to know if someone knows/have an idea about...
  37. M

    Fluid mechanics navier stokes flow around geometry

    hey pf! i am studying fluid mechanics and was wondering if any of you are familiar with a flow around some geometry? for example, perhaps a 2-D fluid flowing around a circle? if so please reply, as i am wondering how to model the navier-stokes equations. i'll be happy to post the equations...
  38. M

    Total pressure at a depth in a fluid

    Hello, I would just like some clarification on this... When you calculate "total" pressure at a depth in a fluid do you have to add on the value for atmospheric pressure?? Thanks, Molly :-)
  39. M

    Fluid mechanics study navier stokes

    hey pf! i am studying fluid mechanics and we are reviewing navier/stokes equations. we have gone over a few problems, but i could definitely use practice on more. do you all have any suggestions that include solutions, not just answers, so if I am stuck i can see how to solve? problems...
  40. Q

    Find the height of fluid in a U-tube container?

    Homework Statement A block of mass 20 g sits at rest on a plate that is at the top of the fluid on one side of a U-tube as shown below. The U-tube contains two different fluids with densities ρ1 = 1070 kg/m3 and ρ2 = 650 kg/m3 and has a cross sectional area A = 4.6 * 10-4 m2. The surfaces...
  41. H

    Similitude, Dimensional analysis for fluid mech.

    Homework Statement The aerodynamic drag of a new sports car is to be predicted at a speed of 100 km/hr at air temperature of 25°C. Automotive engineers build a ¼ scale model of the car to test in a wind tunnel, where the air temperature is 10°C. A drag balance is used to measure the drag...
  42. M

    What's the pressure acting on this fluid?

    I understand that as an incompressible fluid flows through a pipe with decreasing cross sectional area the velocity increases. This must happen for the mass/volume continuity equations to be true. Since the velocity is increasing though there has to be a net pressure on the fluid right? My...
  43. P

    Basic Question about Force for Fluid Mechanics

    Homework Statement The block of ice (temperature 0°C) shown in Figure P9.57 is drawn over a level surface lubricated by a layer of water 0.10 mm thick. Determine the magnitude of the force needed to pull the block with a constant speed of 0.50 m/s. At 0°C, the viscosity of water has the...
  44. O

    How Does Viscosity Affect Flow Rate According to the Hagen-Poiseuille Equation?

    Homework Statement see the pic attached Homework Equations Newton's law of viscosity The Attempt at a Solution okay, i knew that , since the viscosity of the fuid in the second tube is low, it flows easily than the other, but i don't know which exact euation connects visocsity...
  45. N

    What is the Equilibrium Angle of an Immersed Wooden Stick?

    Homework Statement A uniform wooden stick of density d is completely immersed in water of density D (D>d). One end of the stick is free to rotate about a hinge which is attached to the wall of the container. In equilibrium the stick the stick makes an angle θ then tanθ is- (a)0 (b)d/D...
  46. G

    Fluid Mechanics - Linear momentum Analysis

    Homework Statement Water is flowing into and discharging from a U-shaped pipe section as shown. At flange (1), 30 kg/s of water flows into the section with the total absolute pressure of 200 kPa. At flange (2), the absolute pressure is 150 kPa. At location (3), 8 kg/s of water discharges...
  47. N

    Just a thought experiment on fluid mechanics.

    I am thinking that... if a tank of water which contains a small wooden block is kept in an elevator which is accelerating upwards from rest, will the block get more dipped or remains constant position with respect to water??
  48. B

    Resistance - fluid resistance to ball motion

    Resistance -- fluid resistance to ball motion A ball of mass m = 3 kg is falling from an initial height y = 3 m in an area where the acceleration due to gravity can be approximated as g = 10 m/s2. As it falls the ball is subjected to a fluid resistance of magnitude FR = kv where k = 6 kg/s. How...
  49. K

    Top Book Recommendations for Studying Fluid Mechanics: Landau vs. Alternatives

    Can anyone recommend me a book on Fluid Mechanics? I've been recommended Landau's book on Fluid Mechanics, but I haven't learned Statistical Mechanics which is required in his book.
  50. U

    For a ball falling through a fluid, does the ball do work on the fluid

    So when a ball falls through a fluid in which it is submerged, it keeps displacing fluid as it descends, but the level of the fluid doesn't rise. So does the ball do work on the fluid? (Assuming there is no viscosity, the K.E would keep increasing, while potential energy decreases...that's...
Back
Top