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

modifying lagrangian library

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 7, 2017, 04:48
Default modifying lagrangian library
  #1
Member
 
Neilson Whit
Join Date: Aug 2011
Location: Japan
Posts: 63
Rep Power: 8
wolfindark is on a distinguished road
Dear All
I want to modify the src/lagrangian/intermediate/parcels/Templates/ThermoParcel/*
basically, heat transfer from the droplets.

I copy whole lagrangian directory to mylagrangian and make changes. It compiles without any problem, but when I run the case it gives some errors for the duplication.

is there any practical way of modification of those template classes?
wolfindark is offline   Reply With Quote

Old   August 13, 2017, 17:57
Default
  #2
PK1
New Member
 
Paul K
Join Date: Aug 2015
Posts: 4
Rep Power: 4
PK1 is on a distinguished road
Quote:
Originally Posted by wolfindark View Post
Dear All
I want to modify the src/lagrangian/intermediate/parcels/Templates/ThermoParcel/*
basically, heat transfer from the droplets.

I copy whole lagrangian directory to mylagrangian and make changes. It compiles without any problem, but when I run the case it gives some errors for the duplication.

is there any practical way of modification of those template classes?
This is tricky due to the complex ways in which templating is applied here.

There are two basic ways:

1. Do a copy of the whole lagrangianintermediate library, do your modifications here and link your solver / sprayFoam (?) against that library.

2. Have a look at how the lagrangianspray library does this and uses parcel/include/*.H and Make/files to create the templates and make sure it is built.

You chose 1.
Did you use the libs() option in the controlDict?
If yes, try linking it at build time (using your lib in Make/options of your solver instead of lagrangianintermediate). That should hopefully do the trick
PK1 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lagrangian library: Edit particle properties within force calculation oswald OpenFOAM Programming & Development 7 January 20, 2016 09:54
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32
Modifying OF library GPL65 OpenFOAM Programming & Development 4 May 16, 2014 09:42
OpenFOAM141dev linking error on IBM AIX 52 matthias OpenFOAM Installation 24 April 28, 2008 15:49
How to use lagrangian tool library lynx OpenFOAM Running, Solving & CFD 1 April 8, 2008 15:30


All times are GMT -4. The time now is 20:37.