|
[Sponsors] |
![]() |
![]() |
#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! |
|
![]() |
![]() |
![]() |
![]() |
#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. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Shuai Yuan
Join Date: Nov 2016
Posts: 29
Rep Power: 9 ![]() |
Hey
Have you find out how to implement the electric field force in OpenFOAM? I am doing a project which need the information. Thanks |
|
![]() |
![]() |
![]() |
![]() |
#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 |
|
|
![]() |
||||
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 |