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

Modifying buoyantBoussinesqPimpleFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2021, 09:48
Default
  #21
Member
 
Alpesh
Join Date: Jan 2011
Location: Germany
Posts: 52
Rep Power: 15
alvora is on a distinguished road
Hi,

I think the fluid density (rho) is not at all required to solve the current continuity equation (charge conservation equation).

Let's say,
rhoE - Space charge density [C/m³ or A-s/m³],
mu - electrical mobility [A-s²/kg]
ePot - electrical potential [kg-m²/(A-s³)]
De - Diffusion coefficient [m²/s]
U - fluid velocity [m/s]

then
Current continuity equation:

fvScalarMatrix rhoEEqn
(
fvm::ddt(rhoE) //Time derivative
+ fvm::div(rhoFlux, rhoE) //Convective term - rhoFlux is surfaceScalarField
- fvm::laplacian(D, rhoE) //Diffusive Term, -/+ sign for +/- space charge density
);
rhoEEqn.solve();

where,
surfaceScalarField rhoFlux = - mu*mesh.magSf()*fvc::snGrad(ePot)

If the space charge density is also dragged by the fluid velocity, then
surfaceScalarField rhoFlux = - mu*mesh.magSf()*fvc::snGrad(ePot) + fvc::linearInterpolate(U)&mesh.Sf()


Isn't it this way? correct me if I am wrong or missing something.


Kind regards
Alpesh
alvora is offline   Reply With Quote

Old   February 13, 2022, 07:52
Default
  #22
Member
 
George
Join Date: Dec 2020
Posts: 31
Rep Power: 6
damon707 is on a distinguished road
Dear all,

I would like to do a simulation of boat propeller with AMI solid body rotating motion and I am interested in the far-wake characteristics of the propeller. Im guessing that buoyancy forces will be important for the far-wake of a propeller thus I need to use a solver which takes buoyancy into account. Since there will be very small stratification of the density in such a problem, will I be able to use buoyantboussinesqpimplefoam for this simulation? Also are there any tutorials or some papers available in this kind of propeller simulations? Are there any known problems of the buoyantboussinesqpimplefoam solver?

Kind regards,
George
damon707 is offline   Reply With Quote

Reply

Tags
buoyantboussinesqpimple, modify solver, openfoam v6


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modifying the laplacian operator mlawson OpenFOAM Running, Solving & CFD 22 July 16, 2018 05:56
Error while modifyinG reactingFoam!! sonGoku OpenFOAM Pre-Processing 0 May 27, 2018 14:57
Modifying the convection term in IcoFOAM code fluidflowsteel OpenFOAM Programming & Development 0 November 28, 2017 06:51
Modifying sonicFoam to add EM terms Alexee OpenFOAM Programming & Development 0 February 11, 2015 11:55
modifying radial distribution function ravindra FLUENT 2 September 2, 2014 15:03


All times are GMT -4. The time now is 21:10.