CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

pisoLagrangianFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 24, 2013, 08:29
Default pisoLagrangianFoam
  #1
New Member
 
alexlupo's Avatar
 
Alejandro López
Join Date: Mar 2013
Location: Bilbao
Posts: 16
Rep Power: 13
alexlupo is on a distinguished road
Hi there!

I am trying to upgrade the pisoLagrangianFoam but I get an error in the momentum predictor because of units mismatch.
I tried adding the particles' density in order to solve the problem but the problem still persists.
My question is how to change the momentum equation in order to take into account the particles influence.
Thanks a lot in advance.
Regards,

Alex

This is the error I get (3217 is the density of the particles but apparently it is not taking into account the units):

--> FOAM FATAL ERROR:
incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] == [(smom|3217)[1 -2 -2 0 0 0 0] ]

And this is the code


// Pressure-velocity PISO corrector
{
// Momentum predictor

fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
+ turbulence->divDevReff(U)
==
particles.momentumSource()/particles.rhop()
);
__________________
Alex
alexlupo is offline   Reply With Quote

Old   September 11, 2013, 14:11
Default
  #2
New Member
 
alexlupo's Avatar
 
Alejandro López
Join Date: Mar 2013
Location: Bilbao
Posts: 16
Rep Power: 13
alexlupo is on a distinguished road
I solved it some time ago.
Thanks anyway!
__________________
Alex
alexlupo is offline   Reply With Quote

Reply

Tags
lagrangian pisofoam


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:34.