Adding an acceleration source term to interFoam
1 Attachment(s)
Dear Foamers,
I want to study the shape oscillation an translation motion of a single bubble in a liquid container under vibration while the imposed displacement of the container is y=Acos(wt). for this purpose,i should add an acceleration source term to momentum equation. I'm trying to modify the interFoam equations by adding a source term to the momentum equation, UEqn.H : Code:
dimensionedVector accY I would appreciate your comments! Thanks a lot, Arsalan. |
hello,
Take a look at how gravity source term is take into account. And do the same. regards, olivier |
Well, with the extra help of Olivier I got the following to compile:
UEeqn.H : Code:
dimensionedVector accY Code:
UEqn.H:35:40: instantiated from here Code:
+ acc*fvc::snGrad(rho) Every help, idea, hint... will be greatly apprecitated! Thanks a lot, Arsalan. |
hello,
Try to follow more closely what's done with g: acc = ...; //ok gh = (acc+g) &mesh.C(); ghf = (acc+g) & mesh.Cf(); .. then you don't have to add acc in momentum predictor. regards, Olivier |
Dear Olivier,
thank u for your reply,but how do i modify the gh and ghf(and at which file)? Best regards, Arsalan |
All times are GMT -4. The time now is 12:31. |