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

    What is the cause of normal stress on a fluid element?

    In the derivation of Navier Stokes equation there is a term for normal stress acting on the fluid element. While the cause of normal stress is the static pressure which is already present in the equation doesn't this mean that the same force on the fluid element is repeated twice with different...
  2. K

    Fluid Dynamics: Dimensional Analysis and important forces

    I am stuck on the questions, 5.3.10 and 5.3.11 which are part of a chapter on dimensional analysis in fluid mechanics by Streeter. Question 5.3.10 (see also the attachment): It asks me for the given fluid dynamic problems, where is the inertial force not important. It lists several fluid...
  3. A

    Calculating Water Force and Moment in a Fresh Water Storage Tank

    1. Homework Statement A fresh water storage tank in a factory is shown in the figure above. Its top side is denoted as C, the narrow side as B and the long side as A. In order to allow regular maintenance and cleaning side A is hinged at its bottom edge and secured using a heavy-duty clasp at...
  4. C

    Fluid Mechanics -- Volume flow rate

    Hey guys. I could use some explanation since I am new to FM: So my problem is the following one: Fluid flows with an average velocity 8 m/s in a pipe with diameter 3m. What is the volume flow rate? Now, I think the formula I got to use is Q= v.A Yet, I found my solution from a formula I found on...
  5. TAKEDA Hiroki

    I Variation of perfect fluid and Lie derivative

    In Hawking-Ellis Book(1973) "The large scale structure of space-time" p69-p70, they derive the energy-momentum tensor for perfect fluid by lagrangian formulation. They imply if ##D## is a sufficiently small compact region, one can represent a congruence by a diffeomorphism ##\gamma: [a,b]\times...
  6. A

    Fluid Dynamics - Water Storage Tank

    Hi All, Looking for some help (any is greatly appreciated). I've been tasked with the below, and am unable to find a worked example to cross check my work against. If anyone with a greater knowledge than me could have a look at the below and advise if I'm right the right track. Thanks 1...
  7. A

    Fluid Mechanics dimensional analysis repeating parameters

    This is more of a concept question; if I choose different repeating parameters to someone else, say my lecturer, and got different pi groups to him/her, however my groups are still dimensionless (i.e. the units for each pi group cancel to 1), is my answer still correct?
  8. LiamB

    Fluid Flow rate and fluid dynamics

    Homework Statement More a report question but unsure where to put it. Take a 5mL syringe and a 10mL syringe (both filled to 5mL) with the plungers removed. Time how long it take to full drain each syringe Make a statement regarding your results. Homework Equations Fluid flow rate = volume /...
  9. Ahmad Esber

    B Is it possible to harvest energy from fluid buoyancy?

    So I've noticed my little sister's helium balloons floating at the ceiling. Made me wonder if someone could create a device that could harvest energy from this buoyancy. What if I tied a very long rope to a huge balloon filled with helium, and rolled the other end of the rope to a gear attached...
  10. H

    A Azimuthal Symmetry in fluid flow

    I am looking at evaporating droplets and I am interested in looking at when there is azimuthal symmetry, and I need to write the Navier-Stokes equations for this. I just set all \varphi terms in the spherical case equal to zero right?
  11. F

    Flow thru a channel constriction

    Homework Statement When a part of the channel is constricted , why will the Emin = Eo ? Homework EquationsThe Attempt at a Solution I just have the figure showing in case 1 and case 2, Emin = Eo without any explanation ... Can someone explain about it ? I tried to search many online resource ...
  12. B

    Difficulty extracting fluid from balloon via syringe

    Hello, New to the forum, so apologies if this is not the correct sub-category. I am testing compliances of materials by filling balloons with different fluids. I do this by filling up a 30 mL syringe with fluid and placing it into an infusion pump set to infuse at a rate of 0.1 mL/min. The...
  13. D

    Energy conservation for a Newtonian fluid?

    Homework Statement ρ= density, vi = i-th velocity component, gi=i-th component of gravity vector, p=pressure, μ= viscosity, D/Dt = material derivative Homework Equations Continuity equation: div v = 0 The Attempt at a Solution
  14. M

    Fluid mechanics and English help

    My native language is not English. I follow a series of vids about Ansys Fluent. I am not stuck in 2.59 about the part "so VR" and "so we are in a velvet in laminar regime." Would you please explain those parts. This is about my project and it is about calculation of pressure losses in pipes in...
  15. Cheesycheese213

    Does temperature change with depth in a fluid?

    Hi, so someone probably has already asked this, but does temperature increase or decrease with depth in a fluid? I thought it would decrease since it has more pressure but it is probably wrong, or doesn't make sense. I was confused because the ocean gets colder the deeper you go, but then does...
  16. cheapstrike

    Velocity of Efflux: Dependence on Orifice Size, Height, Gravity, Density

    Homework Statement The velocity of efflux of a liquid through an orifice in the bottom of the tank does not depend upon: A. Size of orifice B. Height of the liquid C. Acceleration due to gravity D. Density of the liquid Homework EquationsThe Attempt at a Solution My textbook says that...
  17. C

    Cellular Automaton, Random Walks, and Fluid Mechanics

    Hi I'm trying to understand a paper that approximates the solution to Burger's equation (1D Navier Stokes) by a doing a one-dimensional cellular automaton simulation. I'm having a hard time understanding how all these topics connect. I have seen and walked through various demonstrations that...
  18. S

    Assumption of local thermodynamic equilibrium in a fluid

    Moving fluids are generally in a state of non-equilibrium. However, in fluid dynamics, people generally assume a state of local thermodynamic equilibrium and argue that in such a condition, equilibrium thermodynamic concepts such as pressure, temperature, entropy, internal energy etc. can be...
  19. C

    I What is the significance of bandwidth in hydraulic transmission lines?

    Hello, I am reading a book about simulation, modeling and automatic control. In a chapter about hydraulic transmission line, a pipe's "bandwidth" is mentioned. Contex: "Long pipes are used in large hydraulic installations where pipes of length up to 10 m are not uncommon. Moreover, in offshore...
  20. D

    Would the velocity of a fluid increase right after exiting a pipe into open air?

    If you have an non-viscous incompressible fluid flowing in a pipe whose static pressure is higher than atmospheric pressure, then after exits the pipe will the dynamic pressure increase? The static pressure of the fluid right after exiting should decrease because it should be equal to the...
  21. Addez123

    Fluid that emits light when applied voltage, got tips?

    Hi, Does anyone know of any fluid that emits light when current is running through it? Why? To feed to a flower, apply low voltage and make it glow. Florescent light isn't enough and bioluminescence isn't my area of expertise so turning a flower into a LED is going to be my approach. All tips...
  22. T

    Fluid Statics/depth in a cylinder

    Homework Statement Mercury is added to a cylindrical container to a depth d and then the rest of the cylinder is filled with water. If the cylinder is 0.8 m tall and the pressure at the bottom is 1.3 atmospheres, determine the depth of the mercury. (Assume the density of mercury to be 1.36 104...
  23. HethensEnd25

    Fluid at 600kPa goes through a pump where it comes out @10MPa

    Homework Statement A pump with inlet of saturated liquid at 600kPa has an exit stream of 10MPa calculate work Homework Equations Energy balance equation Entropy balance equation Linear interpolation Steam table The Attempt at a Solution My attempt at the solution was to calculate the entropy...
  24. A

    A Fluid Dynamics Problem with Confusing Results

    Hi all, I encountered a fairly straightforward problem involving fluid dynamics, but the result I got is very confusing and I seem not to understand where I got wrong. This is the question: A rectangular flat-bottom barge with a bottom area A=50 m2A=50~\text{m}^2A=50 m2 is loaded so that the...
  25. L

    Why does fluid pressure decrease with higher density in narrow pipes?

    So I was playing around with Fluid Pressure and Flow over on PHET animations and noticed something odd. When a fluid with high flow rate is going from a large pipe to a small pipe a lower density increases the pressure. And a higher density lowers the pressure in the narrow part of the pipe. My...
  26. M

    A Time differentiation of fluid line integrals

    I am looking at a proof from a book in fluid dynamics on time differentiation of fluid line integrals - Basically I am looking at the second term on the RHS in this equation $$ d/dt \int_L dr.A = \int_L dr. \partial A / \partial t + d/dt \int_L dr.A$$ The author has a field vector A for a...
  27. A

    Vertical foce of fluid jet split in two

    Homework Statement A water jet hits a wall and splits into two streams (see attachment). The jet carries 3kg of water per second. The cross-sectional area of the flow at (2) is A = 2*10^-3 m^2. The average velocities at the outlets are V2 = V3 = 1m/s What is the net vertical force exerted by...
  28. nabilah

    Solving Distance of Starch Particles in Fluid w/Stoke's Law

    1. Homework Statement I did an experiment to separate different sizes of starch particles (range of size 1 µm to 10 µm). I mixed the starch powder with water in a long cylinder. I have to create model by using long cylinder to separate those starch particles according to their size (<1µm...
  29. R

    Other A module choice between Cosmology and Fluid Mechanics....

    Hi all, I study Mathematics and Theoretical Physics at university. Next year, I'll have a choice between three modules; Thermodynamics and Statistical Physics Cosmology Fluid Mechanics My main interest is Condensed Matter Physics; therefore, thermodynamics and statistical physics is a given...
  30. G_Mallard

    Not sure Exactly what Pressure I am Solving for in this Form

    Hello all, I am posting this question here in this thread and not the homework thread since it is not a homework problem but something I have been working on myself. Let us imagine a fluid flowing through a pipe, we can measure pipe diameter and fluid velocity. The density of the fluid is also...
  31. R

    B Metric tensor of a perfect fluid in its rest frame

    The stress-energy tensor of a perfect fluid in its rest frame is: (1) Tij= diag [ρc2, P, P, P] where ρc2 is the energy density and P the pressure of the fluid. If Tij is as stated in eq.(1), the metric tensor gij of the system composed by an indefinitely extended perfect fluid in...
  32. S

    Can an Electrostatic Fluid Accelerator inflate a balloon?

    Hey guys, I am trying out an idea. I want to see if I can make an electrostatic fluid accelerator inflate a balloon. Attached is an image of a concept I came up with that works a little differently. Before I dive in, I was wondering if anyone on the forum could tell me if my concept might or...
  33. Y

    Solenoid valve for a cryogenic fluid

    Hello everyone! I am new to these forums and glad to see a great community helping out each other. I have a question regarding a solenoid valve design. What should be the design ethics and safety considerations for a 240 volts AC connected solenoid valve that is used for a cryogenic vessel...
  34. hdp12

    Fluid Mechanics: Bernoulli & Energy Equations Problem- Help?

    Hello there. I took a test yesterday in my thermal fluids 1 class and I was hoping somebody could confirm or critique my answer. (Don't worry, I asked the professor first if I could take the picture) The problem is: Water is pumped from a lake to a pool through a 0.05 m diameter pipe. System...
  35. Brage Eidsvik

    Terminal velocity of fluid in pipe

    Hello, How do you calculate the terminal velocity of a fluid through a pipe. My problem includes turbulent flow, very high reynold number, and water (incompresible).
  36. T

    Multiphase Flow in Fluid Dynamics - Energy Coupling

    Hello, I have a general question regarding energy coupling in multi phase flow. My question comes is based on the text from this book...
  37. B

    Efficient Viscous Fluid Degassing Techniques for Epoxy Resin: Tips from Experts

    Hi all! I'm currently working with epoxies and very viscous silicone oils. The problem is when I mixing the two part epoxy, there will be a lot of bubbles in the resin. I managed using heat gun to break air bubbles near the surface, but the bubble at bottom of the mold cannot flow up. I know...
  38. D

    Medical (Biomedical) Fluid mechanics: flow, resistance, and pressure

    Hello, I'm a physician with special interest in cardiovascular physiology. I'm trying to comprehend the basic physics of the cardiovascular system. Here's my thought process - Simply stated - the heart muscle contracts, thereby causing a reduction in the cardiac chamber volume and release of...
  39. S

    Fluid Dynamics Homework: Solving for Velocity Components at Stagnation Point"

    Homework Statement Homework Equations The Attempt at a Solution I tried a few different things, they all involve finding u and v components of velocity. I know the stagnation point is at y = 0. I also know that at stagnation u = v = 0. If I get the velocity magnitude and set it equal...
  40. Ron19932017

    Fluid mechanics in a water container, reference from Feynman

    Hi all, I have a little problem while reading Feynman lecture note volume 2, chapter 40, section 40-3. In that section Mr Feynman talked about Bernoulli equation and a example of a filled water container. In high school we learned that if we drill a hole near bottom of container, we can get...
  41. S

    Exploring Fluid Dynamics: Homework Statement and Equations

    Homework Statement Homework Equations The Attempt at a Solution I don't even know where to start. I don't understand the question.
  42. F

    Calculating Best Hydraulic Section for Composite Channel - Flow Rate 6.5(m^3/s)

    Homework Statement Determine the depth of the flow of channel if the best hydraulic channel is needd for composite channel in figure to convey flow rate of 6.5(m^3/s) , Manning coefficient n on bed slope are 0.015 and 0.0015 respectively . Homework EquationsThe Attempt at a Solution I assume...
  43. S

    Fluid Dynamics: Pressure Field - Vector or Scalar? | Homework Question

    Homework Statement This is not so much a homework problem but a question I have on the subject while studying. I have a terrible teacher who is contradicting my textbook constantly and I really want to learn this. Is a pressure field vector or scalar? If given the velocity components, is...
  44. R

    Trajectory of a particle in a spinning fluid

    Homework Statement I need to show that a particle suspended on a spinning liquid (which is spinning with constant angular velocity) describes a spiral . (I need to solve this without using Lagrangian-Hamiltonian formalism)Homework Equations [/B] Weight and Bouyant forceThe Attempt at a...
  45. H

    How is the momentum conserved inside of a fluid?

    Hello Physics Forums, I have a fluid dynamics problem which appears to challenge some momentum principles. Suppose you have two submarines (like below), identical in shape, but not in mass. One of the submarines has density equal to the fluid, while the other is denser. They move at the same...
  46. L

    Why momentum is conserved for a jet of fluid?

    This is something I do not know how to explain. Although velocity decreases due to friction with ambient air, momentum should be conserved and, therefore, it entrains mass. What is the reason that momentum should be conserved?
  47. A

    B Dynamic Fluid (airplane landing/decrease altitude)

    Hi guys.. I've some discussion with my friend. We are teacher. So we must carefully to answer question for student.. there the question is From figure below, p2 and p1 applied on plane's wings. When airplane landing/decrease altitude, which condition must occupied A. P1=P2 and v1=v2 B. P1<P2...
  48. R

    CFD turbulent fluid, discussion about pressure gradient

    I simulated an incompressible turbulent flow across a tube. I managed to solve it using OpenFoam and the results seem to be right. However, I noted some vacuum pressure after the sudden expansion but can't figure out why the pressure decreases and then increases again. According to Bernoulli's...
  49. F

    I Diffusion and convection in a moving fluid

    In a fluid moving at constant velocity V, a concentration will undergo diffusion and convection $$U_t=\alpha^2 U_{xx}+VU_x$$ I understand that in this situation you can transform to a moving coordinate system and the convection term will disappear and you can solve for diffusion alone and...
  50. D

    Should I learn fluid mechanics or thermodynamics

    I am graduate student from structural mechanics of solids and need to learn 1 course from fluids and thermal group which includes fluid mechanics or thermodynamics+heat transfer. I am unsure which one would be better to learn, especially which would be helpful in future for solid mechanics. Can...
Back
Top