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, 09: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, 13:28
Default
  #2
New Member
 
Jan Bartel
Join Date: Jul 2015
Location: Germany
Posts: 5
Rep Power: 10
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, 11:21
Default
  #3
New Member
 
Shuai Yuan
Join Date: Nov 2016
Posts: 29
Rep Power: 9
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, 12:34
Default
  #4
Member
 
Sourav Mandal
Join Date: Jul 2019
Posts: 55
Rep Power: 6
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 07:27
ActuatorDiskExplicitForce in OF2.1. Help be_inspired OpenFOAM Programming & Development 10 September 14, 2018 11:12
Add lagrangian particles to OpenFoam solver luchen2408 OpenFOAM 0 June 2, 2015 03:10
Force can not converge colopolo CFX 13 October 4, 2011 22:03
Additional variable for lagrangian particles (dieselFoam) N. A. OpenFOAM 0 July 16, 2010 10:45


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