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

user BC for lagrangian simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 30, 2012, 07:57
Default user BC for lagrangian simulation
  #1
Member
 
Sylvain Aguinaga
Join Date: Feb 2010
Posts: 41
Rep Power: 16
Sylvain is on a distinguished road
Hello everybody

I'm trying to implement a new user BC for lagrangian simulations. The idea is to start from the StandardWallInteraction code and to change some lines inside to fit my purpose. I have tried to implement that condition using two different ways

1) I made a copy of StandardWallInteraction and changed the name of the functions and put it inside the same directory (src/lagrangian/intermediate/submodels/Kinematic/PatchInteractionModel). I also updated the /src/lagrangian/intermediate/parcels/include/ makeParcelPatchInteractionModels.H file with my new model and tried to recompile the whole intermediate library. But the compiler failed in finding my code. I don't know why.
2) The second way is to copy the StandardWallInteraction BC inside the Run directory, change its name and compile it inside a user library. To do that I used the same files and library as for compiling the intermediate directory (+ the library of intermediate) inside the Make directory. But the compilations failed. With the following error I don't understand

Code:
totoInteraction/totoInteraction.C:31: error: redefinition of âFoam::totoInteraction<CloudType>::totoInteraction(const Foam::dictionary&, CloudType&)â
Is there anybody who tried and "succeeded" in compiling a new PatchIntreactionModel? Anyone has an idea how to make it conveniently? It looks a little more complicated than for a standard userBC for the flow.

Thanks ahead for any clue

Sylvain
Sylvain 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
User Defined function for scalar gradient caculation with Star ccm+ V4 coolio STAR-CCM+ 4 August 11, 2023 05:38
Simulation of a complex wing in solidworks flow simulation niels1900 FloEFD, FloWorks & FloTHERM 6 April 20, 2011 10:44
GUI crash and simulation engine still running RPJones FLOW-3D 2 November 9, 2010 08:18
velocity profile export from a simulation onto another sudhirlv STAR-CCM+ 1 September 12, 2010 18:57
CFX 5.5 Roued CFX 1 October 2, 2001 16:49


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