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. 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)
  2. 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...
  3. 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...
  4. 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...
  5. 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)...
  6. 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...
  7. 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...
  8. 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
  9. 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?
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. C

    Fluid Mechanics Piston Problem

    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...
  21. 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...
  22. 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
  23. 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...
  24. 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
  25. 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...
  26. 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...
  27. 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##...
  28. 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...
  29. 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...
  30. 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...
  31. 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 :-)
  32. 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...
  33. 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...
  34. 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...
  35. 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...
  36. 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...
  37. 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...
  38. N

    Simple Fluid mechanics problem

    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...
  39. 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...
  40. 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??
  41. 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...
  42. 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.
  43. 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...
  44. N

    Fluid Mechanics: Friction of a moving surface

    Hey! So for Newtonian fluids, the shear-stress is given by \tau = \mu \frac{du}{dy} Now, let's assume you have water flowing horizontally in laminar steady state motion, where its surface is also moving. Above it is air. So if we disregard the friction from air, the shear-stress will become...
  45. M

    How much math for fluid dynamics?

    hey all im taking a graduate level fluid mechanics course. we are using a good amount of vector calculus (expected) and also tensor algebra, leading into the kronecker delta and Levi-Civita symbol (shockingly never saw these before, though implicitly used them). it seems linear algebra is...
  46. S

    Introductory Fluid Mechanics book.

    Could someone recommend me a good Introductory Fluid Mechanics book? It's only an introductory course so it doesn't have to be too comprehensive at all. Thanks.
  47. N

    Steady state in fluid mechanics

    Hey! When a stream is steady-state, you can cancel the acceleration term in navier-stokes equation, right? so: \rho \vec{a} = 0 = - \nabla P + \rho \vec{g} + \mu \nabla ^2 \vec{V} But there are many terms in the total acceleration which are not dependant on time! The acceleration term in...
  48. K

    Water Vortex Power Plant: Fluid Resistance

    Hi, I would like some help for my final project. I'm trying to find an eqn for fluid resistance which is present on the frontal side of the blade as it spins: so far what I've come up by dimensional analysis is the drag force equation: F=Cd x ( ρ x v^2)/2 x A to get the fluid...
  49. B

    Engineering Researchers in fluid mechanics: engineers , Physicists ?

    Researchers in fluid mechanics: "engineers", "Physicists" ? Dear all, I was reading the book "Turbulent flows" of S. Pope and I went to his website at Cornell and started to see his work. In case you do not know him, I can tell you that his work is 100% applied mathematics and fluid physics...
  50. T

    Fluid mechanics and circular flow

    Dear all I am having a problem on circular flow of fluid. On all books I have read they say \frac{dp}{dr}=\rhov^{2}/r Which make sense by using infinitesimal square volume and take the force exert. But if I use a circular infinitesimal volume (which is usually the case for circular...
Back
Top