CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 17 of 17
Search took 0.00 seconds.
Search: Posts Made By: qi.yang@polimi.it
Forum: OpenFOAM Programming & Development February 10, 2020, 03:37
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
Thanks a lot Dongyue. The equations that I wrote...

Thanks a lot Dongyue. The equations that I wrote here are not accurate and you are right.
We will not use the dispersion force defined in the openfoam because our group provided a new two fluid...
Forum: OpenFOAM Programming & Development February 7, 2020, 04:23
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
My obejective is to add the phase dispersion term...

My obejective is to add the phase dispersion term in both U and p equations
Please help me to verify the codes I wrote are right or not?
In Uequation I wrote like this:
U1Eqn =
(
...
Forum: OpenFOAM Programming & Development February 7, 2020, 03:59
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
-fvm::div(fvc::snGrad(alpha1)*mesh.magSf()*fvc::in...

-fvm::div(fvc::snGrad(alpha1)*mesh.magSf()*fvc::interpolate(rho1*phase2.turbulence().nut())/sigma, U1)

I changed it to be like this, it compiled. But the simulation is also crashed for the fine...
Forum: OpenFOAM Programming & Development February 7, 2020, 03:40
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
Thanks. In your opinion, -...

Thanks. In your opinion,
- fvc::div(fvc::grad(alpha1)*rho1*phase2.turbulence( ).nut()/sigma*U1) this code is reasonable or not? After I added this code in the equation, it can be compiled and run...
Forum: OpenFOAM Programming & Development February 6, 2020, 10:33
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
It is so weird. When I used the mesh with larger...

It is so weird. When I used the mesh with larger boundary layer thickness, the result is reasonable and accurate. After I decreased the boundary layer thickness, it was crashed cause the bounding k...
Forum: OpenFOAM Programming & Development February 5, 2020, 12:23
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
I think I solved the problem with the following...

I think I solved the problem with the following code:
- fvc::div(fvc::grad(alpha1)*rho1*phase2.turbulence().nut()/sigma*U1)
it was compiled successfully and I ran the test case. The results seem...
Forum: OpenFOAM Programming & Development February 5, 2020, 11:59
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
sigma I defined like the following in...

sigma I defined like the following in createfields:
dimensionedScalar sigma("sigma", dimViscosity/dimViscosity, mytransportProperties);

In fact, it is dimensionless.
Forum: OpenFOAM Programming & Development February 5, 2020, 08:43
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
Question Sorry, I am not so familiar with numerical...

Sorry, I am not so familiar with numerical scheme. I found one equation described here. When we should regard one term as a source term rather than add it directly in the equation?
solve(...
Forum: OpenFOAM Programming & Development February 5, 2020, 08:36
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
rho1 is the density of phase1 (dimensioned volume...

rho1 is the density of phase1 (dimensioned volume scalar) sigma is defined by me, which is a dimensonless constant.
Forum: OpenFOAM Programming & Development February 5, 2020, 08:12
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
Sorry. I mean "failed" In file included from...

Sorry. I mean "failed"

In file included from mytwoPhaseEulerFoam1.C:96:0:
pUf/UEqns.H: In function 'int main(int, char**)':
pUf/UEqns.H:18:5: error: no matching function for call to...
Forum: OpenFOAM Programming & Development February 5, 2020, 08:03
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
I tried this but it faild again.

I tried this but it faild again.
Forum: OpenFOAM Programming & Development February 5, 2020, 07:52
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
The following is the original code for UEquation,...

The following is the original code for UEquation, but divDevRhoReff(U2) is not the surface field?
U2Eqn =
(
fvm::ddt(alpha2, rho2, U2) + fvm::div(alphaRhoPhi2, U2)
...
Forum: OpenFOAM Programming & Development February 5, 2020, 06:10
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
I am confused that both U equation and P equation...

I am confused that both U equation and P equation are based on the surface field?

pEqnComp1 =
(
contErr1
- fvc::Sp(fvc::ddt(alpha1) + fvc::div(alphaPhi1), rho1)
)/rho1
+...
Forum: OpenFOAM Programming & Development February 5, 2020, 05:44
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
After I changed the code like this, the error...

After I changed the code like this, the error occurs:

- fvm::div(rho1*phase2.turbulence().nut()/sigma*fvc::snGrad(alpha1), U1)

In file included from mytwoPhaseEulerFoam1.C:96:0:
pUf/UEqns.H:...
Forum: OpenFOAM Programming & Development February 5, 2020, 05:39
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
Really thanks. In terms of the pressure...

Really thanks. In terms of the pressure equations, there are some parts to be changed?
Forum: OpenFOAM Programming & Development February 5, 2020, 05:20
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
Thanks a lot, Cyprien.. I also changed the mass...

Thanks a lot, Cyprien.. I also changed the mass conservation equation as shown following. But in my momentum equation, there is no phi existing. Could you please help me to see that pic I attached.
...
Forum: OpenFOAM Programming & Development February 4, 2020, 13:08
Replies: 26
Views: 1,655
Posted By qi.yang@polimi.it
Question add a phase diffusion term in both continuity and monmentum equations for twoPhEuler

Hi everone, Please help me to verify the code I wrote is reasonable or not, Thanks a lot.

I need to add a diffusion term (which is shown in the attached figure) in both Uequation and pequation for...
Showing results 1 to 17 of 17

 
Forum Jump

All times are GMT -4. The time now is 20:45.