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. squelch

    Pressure of a fluid contained in a steel container

    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...
  2. SnakeDoc

    A simple Fluid Dynamics/Pressure HW question

    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...
  3. M

    Verifying Stokes' Flow for Fluid Motion Around a Sphere

    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...
  4. S

    Bernoulli's equation and fluid movement

    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...
  5. T

    Magnetic field due to flowing charged fluid

    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...
  6. Feodalherren

    Fluid Mechanics: viscous flow in pipes

    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...
  7. M

    Modeling Deceleration of Object Towed in Water

    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...
  8. ryanuser

    Fluid that is a permanent magnet at room temperature?

    Hi Is there any fluid that is a permanent magnet at room temperature? (Ferrofluids do not retain their magnetic effect hence temporary). Thanks
  9. U

    Hydrostatics on plane surface (basic fluid mechanic Q)

    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)...
  10. A

    Exploring Advective Acceleration in Fluid Mechanics

    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...
  11. M

    Simulation error messages solidworks - invalid goals

    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...
  12. andyrk

    Direction of pressure in a Fluid

    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.
  13. S

    Nozzle problem between subsonic and supersonic speed & nozzle area

    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...
  14. AdityaDev

    How does the melting of ice affect the oil-water interface in a fluid system?

    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...
  15. R

    Need help re: air pressure to fluid pressure

    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...
  16. L

    What is the resultant force exerted by the sides of the glass on the water?

    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...
  17. L

    Classical I need a fluid mechanics textbook

    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...
  18. M

    Fluid mechanics~ Bulk modulus

    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.
  19. B

    Molecular Modeling of Fluid Mechanics

    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...
  20. A

    Drawing up a liquid by forward motion of a tanker

    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...
  21. Feodalherren

    Computational fluid dynamics: steady 2D flow

    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...
  22. Feodalherren

    Fluid Dynamics: Conservation of momentum equation

    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...
  23. Wyn

    Other Intr. Fluid Mech. for Physicists and Mathematicians by Pert

    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.
  24. Saumya Kar

    Difference between acoustic pressure and fluid pressure

    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?
  25. Q

    Problem of fluid -- Blocks, pulley, two fluids

    Homework Statement dynamic viscosity 1 = 1125 2 kgf-s / m2 , dynamic viscosity 2 = 62.5 2 kgf-s / m2 , Areas: A1 = 20 cm2 , A2 = 50 cm2 W1 = 15 Kgf, W2 = 40 Kgf. The block (2) is displaced downwards with a constant speed of 80 mm / sec, whereas linear velocity distribution determined: 1) The...
  26. Z

    Finding density of fluid from a mass on a spring in fluid

    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...
  27. A

    Fluid dynamics question (Poiseuille)

    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...
  28. A

    Calculation of the force exerted by a liquid

    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...
  29. Q

    Fluid problem -- Piston moving in an oil-filled cylinder

    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...
  30. A

    Pressure and normal stress in fluid mechanics

    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...
  31. Feodalherren

    Newtonian fluid mechanics: Navier-Stokes equation

    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...
  32. L

    Do diabetics have sugary interstitial fluid?

    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...
  33. Dennydont

    Velocity of fluid in venturi tube

    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...
  34. L

    Fluid statics- pressure intensity and hydrostatic force

    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...
  35. D

    Fluid mechanics: intuition about the 'convective' term

    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...
  36. T

    Fluid dynamics - find velocity of a particle in a vector fie

    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) +...
  37. T

    Pressure and velocity calculation for microchannel. pls help

    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...
  38. Feodalherren

    Fluid Mechanics: Hydrostatic Pressure on a gate with hinges

    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...
  39. M

    Venturi, how does fluid go from low P tube to high P tube

    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...
  40. Feodalherren

    Fluid Mechanics: Manometry - Fluid through a pipe

    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...
  41. C

    Pressure change when volume changes for incompressible fluid

    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...
  42. Feodalherren

    Fluid Mechanics: Rotating cylinder viscometer

    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)...
  43. N

    Roman Inverted Siphons and Fluid Dynamics

    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...
  44. S

    Water Pressure in an Isolated System

    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? ...
  45. B

    Fluid Mechanics: velocity u for circular pipe

    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...
  46. Feodalherren

    Fluid Mechanics: Cone-Plate viscometer

    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...
  47. T

    Pressure Propagation through Fluid

    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...
  48. R

    Flow Rate in Horizontal Rectangular Channel: Solve Now

    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...
  49. P

    What is the Acceleration of a Spherical Shell Filled with Fluid on an Incline?

    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...
  50. adoion

    Question about fluid expansion

    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...
Back
Top