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

Implementation of thermophoretic force in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By manu305

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2018, 08:54
Default Implementation of thermophoretic force in OpenFOAM
  #1
New Member
 
Manohar Kampili
Join Date: Jun 2014
Location: Jülich, Germany
Posts: 2
Rep Power: 0
manu305 is on a distinguished road
Dear Foamers,


Greetings,


Currently, I am trying to implement thermophoretic force acting on a particle in lagrangian particle tracking of OpenFOAM. Hope someone might have already implemented it since it is an important aspect to consider in particle tracking.



I came across an old implementation in the issue tracking of OpenFOAM foundation. https://bugs.openfoam.org/view.php?id=2549


With little modifications to the code (Thermophoretic_2.zip in above link), the code was succesfully compiled. I thought it would be appropriate to consider thermophoretic force as NonCoupled force instead of Coupled force. So I changed it inside the code. However when I am running the simulation with reactingParcelFoam, I am ending with an error. It would be great if someone can suggest a way out from here.


---------------------------------------------------------------------------

Solving 3-D cloud reactingCloud1
#0 Foam::error:rintStack(Foam::
Ostream&) at ??:?
#1 Foam::sigSegv::sigHandler(int) at ??:?
#2 ? in "/lib64/libc.so.6"
#3 Foam::interpolationCell<double>::interpolate(Foam: :Vector<double> const&, int, int) const at ??:?
#4 Foam::Thermophoretic<Foam::KinematicCloud<Foam::Cl oud<Foam::ReactingMultiphaseParcel<Foam::ReactingP arcel<Foam::ThermoParcel<Foam::KinematicParcel<Foa m:article> > > > > > >::calcNonCoupled(Foam::ReactingMultiphaseParcel<F oam::ReactingParcel<Foam::ThermoParcel<Foam::Kinem aticParcel<Foam:article> > > > const&, double, double, double, double) const at ??:?
#5 ? at ??:?
#6 ? at ??:?
#7 ? at ??:?
#8 ? at ??:?
#9 ? at ??:?
#10 ? at ??:?
#11 ? at ??:?
#12 ? at ??:?
#13 ? at ??:?
#14 __libc_start_main in "/lib64/libc.so.6"
#15 ? at /home/abuild/rpmbuild/BUILD/glibc-2.22/csu/../sysdeps/x86_64/start.S:121
Segmentation fault (core dumped)



------------


I tried to analyse the reason by using the constant thermal condcutivity of fluid as additional input parameter (Thermophoretic.zip in above link), it works fine. So I came to the conclusion that constructing the kappa field and interpolating to particle position on fly is causing the problem. In my case, it is pretty obvious that thermal conductivity of fluid changes in the boundary layer due to large temperature gradients. It can significantly affect the magnitude of thermophoretic force.


Instead of constructing the kappa field on the fly, I thouht of creating it as an additional field (in createFields.H) and read it inside the Thermophoretic.C and interpolate to the posiition of particle. However, I ended up without any clue how to do it ? All the other particle forces, need to read only one field, and in this I need to read two them at a time. It would be great help, if anyone can help me with reading of the new kappa field from Thermophoretic.C ?




Thanks in advance,

Manohar
charryzzz likes this.
manu305 is offline   Reply With Quote

Old   March 31, 2022, 19:14
Default
  #2
New Member
 
Join Date: Mar 2022
Posts: 4
Rep Power: 4
jines0708 is on a distinguished road
Were you able to solve this ?
jines0708 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
OpenFOAM Training: Programming CFD Course 12-13 and 19-20 April 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 14, 2016 10:19
implementation of the technique for turbulent flows DES in openFOAM Ferdinand OpenFOAM Running, Solving & CFD 1 July 20, 2015 19:11
my query on implementation of a new application on OpenFOAM Annier OpenFOAM Running, Solving & CFD 3 June 28, 2013 03:18
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56


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