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

Adding a new force to lagrangian particles

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 13, 2015, 10:09
Lightbulb Adding a new force to lagrangian particles
  #1
New Member
 
Join Date: Apr 2015
Posts: 9
Rep Power: 11
Kabra is on a distinguished road
Hello all,
currently I want to add a force for the implemented lagrangian particles for the kinematicCloud based on the particles electrical charge and an electric field.
I want to add a new force in
/src/lagrangian/intermediate/submodels/Kinematic/ParticleForces
and use it through swak4foam.
Could anyone tell me if this is a good way to do it or are there some other/better means of implementation.

And as I am already on the topic: I think there is an error in the code in
src/lagrangian/intermediate/submodels/Kinematic/ParticleForces/forceSuSp/forceSuSp.H
It says

Code:
        // Friend operators

            //- Addition
            friend inline forceSuSp operator*
            (
                const forceSuSp& susp1,
                const forceSuSp& susp2
            );

            //- Multiplication
            friend inline forceSuSp operator*
            (
                const scalar s,
                const forceSuSp& susp
            );
instead of


Code:
        // Friend operators

            //- Addition
            friend inline forceSuSp operator+
            (
                const forceSuSp& susp1,
                const forceSuSp& susp2
            );

            //- Multiplication
            friend inline forceSuSp operator*
            (
                const scalar s,
                const forceSuSp& susp
            );
In the corresponding file forceSuSpI.H it is correct.



Thanks in advance!
Kabra is offline   Reply With Quote

Old   August 13, 2015, 14:28
Default
  #2
New Member
 
Jan Bartel
Join Date: Jul 2015
Location: Germany
Posts: 5
Rep Power: 11
Jan_B is on a distinguished road
Hey Kabra,

I have no experience with swak4foam, but I recently added a new Particle Force to the lagrangian particles. Maybe my thread could already help you:

http://www.cfd-online.com/Forums/ope...arcelfoam.html

Following the linked OFWiki was a big help for me.
Jan_B is offline   Reply With Quote

Old   March 15, 2017, 12:21
Default
  #3
New Member
 
Shuai Yuan
Join Date: Nov 2016
Posts: 29
Rep Power: 10
sy2516 is on a distinguished road
Hey

Have you find out how to implement the electric field force in OpenFOAM? I am doing a project which need the information.

Thanks
sy2516 is offline   Reply With Quote

Old   July 8, 2021, 13:34
Default
  #4
Member
 
Sourav Mandal
Join Date: Jul 2019
Posts: 55
Rep Power: 7
sourav90 is on a distinguished road
Not sure if these are the perfect examples of what is asked here, but worth take a look:

http://www.tfd.chalmers.se/~hani/kurser/OS_CFD/, the 2016 & 2014 LPT courses specifically:
sourav90 is offline   Reply With Quote

Reply

Tags
electric field, forces, lagrange particle, lagrangian, swak4foam


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
Adding a new drag force to icoUncoupledKinematicParcelFoam Jan_B OpenFOAM Programming & Development 12 November 25, 2021 08:27
ActuatorDiskExplicitForce in OF2.1. Help be_inspired OpenFOAM Programming & Development 10 September 14, 2018 12:12
Add lagrangian particles to OpenFoam solver luchen2408 OpenFOAM 0 June 2, 2015 04:10
Force can not converge colopolo CFX 13 October 4, 2011 23:03
Additional variable for lagrangian particles (dieselFoam) N. A. OpenFOAM 0 July 16, 2010 11:45


All times are GMT -4. The time now is 04:16.