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

Looking for OpenFOAM solver suggestions for solar pond modelling

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2018, 10:23
Default
  #21
Member
 
PATRICIA NAKANWAGI
Join Date: May 2017
Posts: 47
Rep Power: 9
npatricia is on a distinguished road
The main source code is as attached
Attached Files
File Type: c BbuoyantBoussinesqPimpleFoam.C (3.6 KB, 4 views)
npatricia is offline   Reply With Quote

Old   June 12, 2018, 13:03
Default
  #22
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Implementation depends on mathematical model. Right now it is not quite clear:

- Why convection terms are missing in temperature and mass transfer equations.
- Why mass transfer is outside of PIMPLE loop.
- You update kinematic density after solution of temperature equation, yet, since you have added mass transfer, kinematic density also depends on salt concentration.
- Do you have evaporation model? Is it just temperature dependent mass flux at the top of something more complicated?
- Since you would like to model lining layers, maybe you should consider modifying one of CHT family solvers, this allows you to have detailed description of heat transfer in the bottom area, also lining material is solid, you need only heat transfer there.
alexeym is offline   Reply With Quote

Old   July 24, 2022, 14:42
Default
  #23
Member
 
Michael Jensen
Join Date: May 2022
Posts: 36
Rep Power: 4
mikethe1wheelnut is on a distinguished road
Quote:
Originally Posted by alexeym View Post
This is a start of incompatibilities between 2.4.0 and 5.x (maybe you can upgrade you OpenFOAM?).

In 2.4.0 there is no noSlip boundary condition. You have to use "fixedValue" with "value uniform (0 0 0)". See U file in tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/hotRoom/0 for example.

Also you need to fix changeDictionaryDict file, in 2.4.0 boundary dictionary has to be included in dictionaryReplacement dictionary.

To clarify, for anybody who isn't already aware, there are two different "branches" of openfoam: openfoam.org, and openfoam.com. This is documented, but you'll only find that documentation if you know to look for it. I didn't. I had to get tipped off when I asked a question. Not only is openfoam incompatible between releases of the same branch, it's (even more?) incompatible between branches. If you research the release histories of both, you will find that alexeym is using .org . At least for his example here. Other tutorials I've found that are helpful use .com . I've heard it said that the recommendation is for users generally to familiarize themselves with both, then.. well, then it seems to me that you've graduated to developer, since you might want to combine features implemented separately in both. Anyway, this is .org . Thank's for the tutorial aleseym!
mikethe1wheelnut is offline   Reply With Quote

Old   July 27, 2022, 21:49
Default
  #24
Member
 
Michael Jensen
Join Date: May 2022
Posts: 36
Rep Power: 4
mikethe1wheelnut is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

I have created example case with codedSource fvOption. You can find it here:

https://github.com/mrklein/foam-case...ter/solar-pond

I have tried to explain how everything is done in README.pdf.

One of the possible problems could be version incompatibilities: I use 5.x, you use 2.4.0, so you have to adapt certain BCs and maybe fvOptions configuration dictionary.

If you have question, post them here.

I have now tried to run the solar-pond. I get the following error in the log:


Code:
/usr/bin/buoyantBoussinesqPimpleFoam: symbol lookup error: /lib/libsolidSpecie.so: undefined symbol: _ZN4Foam8fileName20allowSpaceInFileNameE

..could this be a compatibility issue? or do I need to re-compile libraries..? (I've been looking at this: symbol lookup error).. I'm using openfoam-9..
mikethe1wheelnut is offline   Reply With Quote

Reply


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
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 15:08
compressible two phase flow in CFX4.4 youngan CFX 0 July 2, 2003 00:32
CFX 5.5 Roued CFX 1 October 2, 2001 17:49
Setting a B.C using UserFortran in 4.3 tokai CFX 10 July 17, 2001 17:25


All times are GMT -4. The time now is 01:03.