|
[Sponsors] |
August 13, 2015, 10:09 |
Adding a new force to lagrangian particles
|
#1 |
New Member
Join Date: Apr 2015
Posts: 9
Rep Power: 11 |
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 ); 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 ); Thanks in advance! |
|
August 13, 2015, 14:28 |
|
#2 |
New Member
Jan Bartel
Join Date: Jul 2015
Location: Germany
Posts: 5
Rep Power: 11 |
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. |
|
March 15, 2017, 12:21 |
|
#3 |
New Member
Shuai Yuan
Join Date: Nov 2016
Posts: 29
Rep Power: 10 |
Hey
Have you find out how to implement the electric field force in OpenFOAM? I am doing a project which need the information. Thanks |
|
July 8, 2021, 13:34 |
|
#4 |
Member
Sourav Mandal
Join Date: Jul 2019
Posts: 55
Rep Power: 7 |
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: |
|
Tags |
electric field, forces, lagrange particle, lagrangian, swak4foam |
|
|
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 |