droplet laplace's law

Now I calculate the verification of collidingBubbles3d.

I 'd like to ask a question.

I want to verify the Laplace law and it needs sigma, radius and pressure difference.
But How can I consider the pressure.

In the code :around 344 we can substitute the number and that is pressure1

Then we can get *g value but I couldn’t distinguish the pressure2

as for the collidingBubbles,Could you help or suggest the way of verification to calculate laplace’s law.

Hi all,

I saw the program in palabos below.

may be I can use it?

I bothered school discussion about using palabos.

Could you help me anyone?


class PressureGradient {
public:
PressureGradient(T deltaP_, plint nx_) : deltaP(deltaP_), nx(nx_)
{ }
void operator() (plint iX, plint iY, plint iZ, T& density, Array<T,3>& velocity) const
{
velocity.resetToZero();
density = 1. - deltaP*DESCRIPTOR::invCs2 / (T)(nx-1) * (T)iX;

}

private:
T deltaP;
plint nx;
};

Hi all
I made a lot of mistake like above

I can compute the pressure in the collidingBubbles3d.

and next I’d like to know how to make the profile that in a box there is a sphere and

everything except the sphere ’ s pressure is constant.

could you help me anyone?

Thanks you for the post.
Hi guys, Im a newbie. Nice to join this forum.


Watch Battle: Los Angeles Online For Free

Hi R1zbear and all,

my problem was solved.

in order to get the pressure diffference,I used the p1->(x,y,z)
and setToFunction

you just check the value of pressure.

it may be easy but not easy for me.