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

    A What are the oscillation modes in low-gravity capillary-dominated flow?

    Hi PF! I am solving a problem for low-gravity capillary-dominated flow, where liquid rests in a rectangular (2D) channel. The text I'm reading introduces a velocity potential ##\hat u = \nabla \phi##, and then states that each oscillation mode is ##\partial_n\phi|_\Gamma = \nabla \phi \cdot...
  2. K

    Sound Generation from Fluid Flow

    Hi guys, I am involved in some research on modelling sound from fluids through mirco annuli and i have been trying to get some of the basic fundamentals on generation of sounds from turbulent flow. Unfortunately most of the online literature do not give much details on the physics of such...
  3. mertcan

    Computational Fluid Dynamics: Dissipation Function Density Based Solver

    ((((As a correction dissipation function in picture should have square of divergence of U)))) Hi, first of all I am aware that we have to discretize the non linear navier stokes equations to reach the almost exact solution, and pressure based or density based algorithms are deployed for that...
  4. O

    Compute Fluid drag, Swim Physics

    Hello, I'm trying to create a simulation of swimming "Animats" (artificial animal). However, I'm only an high school student, so I don't know how to deal with fluid drag and fluid dynamics. In this link you could find a short animation I made describing the swim motion my animat is going to...
  5. Xezlec

    A How to simulate a membrane in a (2D) fluid?

    I wasn't sure whether to post this in here or in computer programming, since it touches on both. I have a personal project that is based on a 2-dimensional finite-element fluid simulation (which already works just fine) but needs to be able to simulate an elastic membrane stretched across a...
  6. dRic2

    Calculating Heat Exchange Surface for Fluid Flow

    Fluid comes in at ##T_1## and comes out at ##T_2## and I know that heat is exchanged with steam at constant ##T_{steam}##. If I want to know the Surface of the exchanger then ##US(T_{steam}-T_{fluid}) = \dot m_{fluid} cp_{fluid} (T_2-T_1)## My question is, since ##T_{fluid}## changes, which...
  7. F

    Understanding Viscosity: Solving a Fluid Mechanics Problem

    Homework Statement the picture has all the information Homework Equations I am assuming we will be needing the viscosity equation, tao= mue(dv/dy) where v is velocity The Attempt at a Solution I do not know how to approach this exercise.
  8. S

    Calculating the PSI needed to generate a certain fluid speed

    How much pressure in PSI would it take to generate 150mph stream out of a 2 mm perfectly round orifice? And how many GPM would that equate to? Thanks for any help
  9. F

    What causes pressure and is it isotropic in a moving fluid?

    I'm studying fluid dynamics and we just had a lecture about the momentum equation. We started the lecture by talking about pressure in terms of molecules moving across a hypothetical surface element and carrying their momentum with them (in both directions). There are 2 things confusing me about...
  10. G

    Orthogonal Projection of Perfect Fluid Energy Momentum

    Homework Statement Derive the relativistic Euler equation by contracting the conservation law $$\partial _\mu {T^{\mu \nu}} =0$$ with the projection tensor $${P^{\sigma}}_\nu = {\delta^{\sigma}}_\nu + U^{\sigma} U_{\nu}$$ for a perfect fluid. Homework Equations $$\partial _\mu {T^{\mu \nu}} =...
  11. U

    Fortran Fortran for Computational Fluid Dynamics Problems

    Dear, Everyone I am a new member here, nice to meet you.. First, I want to introduce my self, I am a master student of physics and I am studying CFD right now. It's a new topic for me and I will also do my research about simulation of fluid dynamics related to CFD. Actually, I got this topic...
  12. E

    Calculating Surface Shear Stress in a Boundary Layer with Given Velocity Profile

    Homework Statement If the velocity v of the air in a boundary layer having a dynamic viscosity of 18x10-6 kg/ms is given in terms of the distance y from the surface by v = ay + by2 where a and b are constants, calculate the surface shear stress if at 1.5 mm from the surface the velocity is 75...
  13. S

    Business major.... fluid dynamics question....

    Homework Statement I have a syringe filled with water. This syringe is a cylinder with a length of 3 inches (L), diameter of 1.5 inches (D). Attached to the syringe is a constant force spring, which pushes the plunger into the syringe with a force of 2 pounds (F). Ignore the friction between...
  14. T

    At supersonic speed, why does Mach number decrease?

    At supersonic speed, air become compressible. However why does Mach number decrease when flow area decrease? I understand that pressure will increase because the density will increase when flow area decrease. However shouldn't the Mach number increase in order to conserve mass flow? Unless the...
  15. C

    I Fragmentation of a drop in a miscible fluid

    -Suppose that drop of some fluid ,with which water is miscible, that has higher density than water is dropped in the glass of (still) water. Forces acting on the drop are gravity and drag force (viscous resistance, Fd=-bv, where v is the velocity of the drop, and b is a constant that depends on...
  16. S

    Schools I want to focus on Fluid and/or soft body dynamics

    Hi, I finished my first Bachelor in Physics, than continued my studies by finishing second bachelor in mechanical engineering. I am a very enthusiastic pilot, maybe that's the reason why I'm pulled towards fluid dynamics and soft body dynamics. Well my dilemma is the following: I don't know...
  17. P

    A Exploring the Stress-Energy Tensor of a Perfect Fluid

    I believe this thread is sufficiently different from one that was recently closed to not violate any guidelines, though there are unfortunately some similarities as the closed thread sparked the questions in my mind. If we look at the stress energy tensor of a perfect fluid in geometric units...
  18. L

    Finding the density inside a tank as air escapes

    Homework Statement A tank of constant volume V contains air at an initial density pi. Air is discharged isothermally from the tank at a constant volumetric rate of Q (with SI units of m^3/s). Assuming that the discharged air has the same density as that of the air in the tank, find an...
  19. thepikminman

    Fluid Mechanics - Why? How? Why?

    Hi, I've been studying fluid mechanics for my mech. engineering degree for the past few months. Unlike my other subjects (mechanical analysis, thermodynamics, automated systems, mechanical vibrations), I can't seem to grasp the problem-solving technique. The annoying thing is, I find the...
  20. J

    Fluid Velocity and Pressure in a *Closed* System

    In a closed fluidic system (with a pump), fluid velocity is constant throughout the system but what puzzles me is the pressure drop due to viscous effect. In a horizontal pipe, pressure decreases gradually (assuming low friction) down the pipe due to viscous effect. In this concepts, it's hard...
  21. M

    I Formulas describing fluid viscosity/compress-ability

    Sorry if this is to basic of a question. I'm trying to find a formula that will describe a viscous, but compressible fluid. This would just be a generic formula as a starting point. I'm trying to describe the variability of densities through this fluid. The closest thing I can find is a...
  22. M

    A Determining Superfluid/Normal Fluid & Critical Velocity of 4He

    Hello, I have two questions regarding a setup concerning fluid 4He. Assume there's a container of some height filled with liquid 4He and a mass that is released from rest at its surface. Two questions: (1) Using what technique can it be decided whether the liquid is a superfluid or normal...
  23. H

    Difficuilt and/or interesting problems in fluid mechanics

    Homework Statement Can anyone please give me hard and interesting problems regarding fluid mechanics problems such as hydrostatic and air prssure bouyance force and Bernoullis equation(Bernoullis equation problems only for liquids)? I tried looking for them but the ones I found were quite...
  24. F

    I Fluid flow through a pipe constriction - what would you feel

    Hi. Imagine a large pipe 10 m wide through which water is flowing at 10 m/s. You are in the stream flowing at the same speed, two other people are stationary at the entrance and in the middle of the venturi. You flow to the a venturi constriction that is 5 m wide. Apart from the acceleration you...
  25. C

    I Stream inside paraffin oil when exposed to high volage

    Here is the experience: I put two electrodes inside paraffin oil (separated by at least 3cm), and submitted the electrodes to high voltage. At 20000 V - 30000 V, strong streams can be observed inside the paraffin oil. Since paraffin oil is a good dielectric, I just would like to understand the...
  26. N

    Flowmetry: find height of fluid in cylinder

    Homework Statement A cylinder with varying diameters is being filled and emptied at the same time. The time is measured. I know Flow rate into cylinder. How do I find the height of fluid in the cylinder at a particular time? The diameter of the hole is 0.005m. The diameter of the bottom of the...
  27. Alexander350

    Modelling Water Tanks: Solving with Bernoulli Equation

    I tried using the Bernoulli equation to solve this. I took two points at the surface of the water in both the containers and formed this equation: gh_{b}=\frac{1}{2}v^2+gh This is assuming that the velocity of the water in the large tank is approximately zero and using the fact that both the...
  28. P

    Fluid Dynamics -- a spherical particle immersed in water

    Homework Statement Consider a spherical particle immersed in water. It will experience random collisions with the surrounding water molecules. Suppose there are such water molecules around the particle. Half (n/2) of the water molecules will push the particle to the right and the other half to...
  29. A

    Is Air a Non-Newtonian Fluid at High Speeds?

    Hi guys, I came upon a definition of Non Newtonian fluid that is any fluid which doesn't deform linearly with increasing stress. But then if you think about fluids, pretty much every fluid acts like this, depending on whether you're actually capable of generating enough force to see it happen...
  30. Likith D

    Regarding the pressure at a point in a "rested" fluid

    Hey! I just came across this text ; from http://www.feynmanlectures.caltech.edu/II_40.html I tried to find "the law of hydrostatics" on the internet, to find no other mention of it. (would appreciate links to more details on it or any ideas regarding the topic) What is really puzzling is how...
  31. M

    Fluid flow through branched nozzles

    Homework Statement I wanted to know if the flow rate and velocity would stay constant or change in nozzles 1,2 and 3 in a incompressible fluid flow through a rectangular duct. (Illustrated image in attachment). Aim is to have the same amount of fluid flowing out of each of the nozzles...
  32. M

    Fluid flow through branched nozzles

    I wanted to know if the flow rate and velocity would stay constant or change in nozzles 1,2 and 3 in a incompressible fluid flow through a rectangular duct. (Illustrated image in attachment). Aim is to have he same amount of fluid flowing out of each of the nozzles. Would the flow rate be...
  33. R

    How much of pump power goes to heating the fluid?

    Let's assume you have a perfectly insulated closed liquid loop with a pump who's motor is cooled by the liquid its pumping. Assume steady state operation, so the pump is operating at some pressure difference and flow rate based on intersection of pump curve and back pressure curve. Does this...
  34. R

    Fluid mechanics/heat transfer - meaning of Nusselt number

    The Nusselt number represents the ratio of heat transfer by convection relative to conduction. At the onset of convection does this correspond to a Nusselt number of 1?
  35. U

    Fluid mechanics - Finding force point of application

    I get how to find vertical and horizontal forces on a submerged surface (vertical = weight of fluid and horizontal = force on vertical projection). I also get how to find the point of application for the horizontal force using a moment balance. But how do you determine the point of application...
  36. H

    Fluid Statics- u-tube displacement

    Homework Statement A uniform U-tube is partially filled with water (ρH20 = 1000 kg/m3). Oil, of density 750 kg/m3, is poured into the right arm until the water level in the left arm rises 30 mm. The length of the oil column is then: (Answer: 40mm) Homework Equations P = pgh Pressure = density...
  37. B

    Understanding Fluid Statics: Solving Gage Pressure Problems

    Homework Statement All over the place here so bare with me, I'll get the hang of it eventually. -----For these types of problems.. can you start at either the top of the tank or from point a? -----Given specific Gravity, you need gamma of the unknown fluid so you multiply it by the density...
  38. A

    What is happening in this fluid dynamics problem and how can we approach it?

    Homework Statement Problem: https://imgur.com/a/ppDy6 Calculate the fluid speed at a certain point Given fluid and sound speed before the point Length of the conduct 2. Useful Equations: Uniformly accelerated motion(my solution) I have been studying this problem it for some time, have...
  39. M

    Engineering Fluid Mechanics book that's pure integration/vector calculus

    Hello. The textbook that was assigned to my class is not a good fit for my professor. The textbook simplifies the basic force equations so that there are no general equations with integrals or vector calculus calculations. Can anybody recommend a Fluid Mechanics book or books that deal only...
  40. D

    Fluid temperature change over cold surface?

    For my research I am trying to study the temperature change of a warm fluid (air) flowing over a cold surface, but I have not studied fluid mechanics. Does anyone know of an equation that can be used to analyze this problem? To give some reference, the hot air is 49 Celsius and the cold air is...
  41. N

    Pressure at the center of an accelerating sphere

    Homework Statement Consider a glass sphere completely filled with water except for a small air bubble at 1 atmosphere. The sphere is accelerating to the right. What is the pressure at the center of the sphere? Let Pe = Atmospheric pressure r = radius of sphere pw = density of water a =...
  42. G

    Fluid dynamics: simulation of an oil system

    Good day folks! I am working on the simulation of an engine, and in particular the oil system makes my head ache. I already finished the calculations for viscosity and temperature, but now I'm stuck on coming up with formulas for pressure and flow rates. With what should I start? For...
  43. M

    What are the best resources for studying astrophysical fluid dynamics?

    i am an aerospace engineer and have good knowledge in fluid and gas dynamics and i want to study astrophysical fluid dynamics , should i study intro to astronomy and astrophysics ? and what are best books in astrophysical fluid dynamics ?
  44. D

    I Fluid transfer low flow to high without a pump

    A 8000 gallon truck of ethanol begins to flow into a tank containing 80,000 gallons of ethanol, how is this possible?
  45. DoobleD

    I Influence of Dark Energy and curvature in photon-baryon fluid?

    When I read explanations about the early Universe and the oscillations of the photon-baryon fluid before recombination, effects of the cosmological constant and of the curvature of the Universe on the fluid are never discussed. Only dark matter, baryons, and photons are mentionned. Dark energy...
  46. Alexander350

    Understanding Liquid Pressure in a Cone: How Does It Compare to a Cylinder?

    I am confused about the pressure depending only on the depth of the liquid, particularly for a cone. Up until P=mg/A=ρVg/A I understand it, but the problem I have is cancelling the area with the volume to give the height. How does this work when the volume of the liquid in the cone is not given...
  47. T

    I No Slip condition in an Inviscid Fluid

    In an Inviscid fluid would the no slip condition exist? If it didn't would it follow that the free stream velocity would exist at the wall ?. If this was the case would surface roughness still present an orthogonal area upon which the kinetic energy of the fluid would interact causing a...
  48. R

    Engineering Research in Fluid Mechanics for MS

    Hi Everyone, I am currently doing undergraduate program in mechanical engineering. I want to pursue masters after my B.Tech in the field of fluid mechanics and aerospace engineering.I want to know about the prospects of this field in the future research. Thanks in advance, Ritwik Kulkarni
  49. ramzerimar

    Courses Is CFD fluid mechanics + computer science?

    I'm having fluid dynamics classes right now and I'm enjoying it very much (much more than my solid mechanics classes, by the way). Also, I do like programming and computer science, and CFD looks like a very interesting field. I'm developing a real interest for it. One question for those who are...
Back
Top