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

Adding new DRAG MODEL for TwoPhaseEulerFoam In OpenFOAM 2.3.x

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By GerhardHolzinger

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2014, 02:22
Default Adding new DRAG MODEL for TwoPhaseEulerFoam In OpenFOAM 2.3.x
  #1
New Member
 
Vishal
Join Date: Feb 2013
Posts: 28
Rep Power: 13
vishal3 is on a distinguished road
Hi all,

I am using twoPhaseEulerFoam (OF 2.3.x, OS: openSUSE 12.3) for solving bubble column. In this solver I want to provide CONSTANT DRAG COEFFICIENT, unlike CONSTANT LIFT/VIRTUAL MASS COEFFICIENT, for the simulations.
Can anyone help me in developing constantDragCoefficient files. Also what are the necessary changes required in main solver???
Please let me know whether anybody has done it earlier??
vishal3 is offline   Reply With Quote

Old   September 11, 2014, 08:08
Default
  #2
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
You don't have to change anything in the main solver, this is one of the beautiful things about object-oriented programming.

  1. Copy the SchillerNaumann folder in dragModels
  2. Rename your copy of SchillerNaumann
    1. Rename the folder
    2. Rename the files
    3. Rename the namespace (use find&replace)
  3. Change the value returned by CdRe() to your needs
  4. Include your new drag model to interfacialModels/Make/files in order to get it compiled
  5. Maybe, copy the whole interfacialModels folder to some location in user-2.3/ to keep your OpenFOAM installation sanitary, i.e. your modified solvers/libraries should reside in the user-2.3 folder.
  6. Maybe, change the LIB entry in files in order to not to overwrite the original library.
    1. Maybe change from FOAM_LIBBIN to FOAM_USER_LIBBIN to keep your OpenFOAM installation sanitary
    2. Maybe change the name of the library to make clear it is a user modified library
GerhardHolzinger 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
chtMultiRegionSimpleFoam: strange error samiam1000 OpenFOAM Running, Solving & CFD 26 December 29, 2015 23:14
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
Blow of compressible solver while using K-epsilon model in openfoam Amit Mathur OpenFOAM 16 October 6, 2013 12:09
Please help a newbie find the drag on a 3d model David Amer Main CFD Forum 1 March 6, 2002 04:33


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