|
[Sponsors] |
July 18, 2018, 14:29 |
tangential laplacian, BC
|
#1 |
New Member
Artem
Join Date: Apr 2014
Posts: 29
Rep Power: 12 |
Dear all,
I am new with openFOAM and I am trying to implement the following boundary condition at the conducting wall: = a where is electric potential, a is constant, is tangential Laplacian at the wall. I wonder if anybody has an idea about the following question: Is it possible to find tangential Laplacian at the wall in openFOAM and if so - how? I guess that it is only possible to find normal Laplacian, but I will be happy if I am wrong. Thanks in advance. Best regards, Tar Last edited by Kombinator; July 18, 2018 at 17:06. |
|
March 5, 2022, 16:21 |
tangential laplacian
|
#2 |
New Member
Francesco
Join Date: Jan 2021
Location: UK
Posts: 1
Rep Power: 0 |
Hi,
I know it is an old post but, I am currently working on the same topic. The boundary condition can be created inheriting from fixedGradient. My idea to obtain the tangential components is applying the laplacian to the field, get its value at the boundary and then substract the second derivative of the normal component. One way to obtain the second derivative is: Code:
. . . const volScalarField& PotE = this->db().objectRegistry::lookupObject<volScalarField> ("PotE"); volVectorField gradPotE = fvc::grad(PotE); const vectorField& Sf = patch().Sf(); // surface face vector area const scalarField& magSf = patch().magSf(); // surface area magnitute vectorField normFace = Sf/(magSf+SMALL); // second derivative of normal component scalarField normGradPotE = gradPotE.boundaryField()[patchi].snGrad() & normFace . . . . // update of gradient (lapPotEw is the laplacian at the boundary gradient()= cWall_*(lapPotEw - normGradPotE); I am unfortunately running into divergence problem in my code. By the way, the tangential components of a vector can be extracted as: Code:
n ^ (n ^ v) Hope that this can help! Hopefully somebody else has a better idea |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why Laplacian is used instead of a combination of divergence and gradient operators? | HakikiCanakkaleli | OpenFOAM Programming & Development | 3 | September 26, 2019 07:40 |
ActuatorDiskExplicitForce in OF2.1. Help | be_inspired | OpenFOAM Programming & Development | 10 | September 14, 2018 11:12 |
Modifying the laplacian operator | mlawson | OpenFOAM Running, Solving & CFD | 22 | July 16, 2018 04:56 |
Laplacian containing an implicit and an explicit variable | voingiappone | OpenFOAM Programming & Development | 0 | July 1, 2013 02:40 |
Problem with time average tangential velocity in swirl flow. | lakhi | FLUENT | 5 | July 18, 2012 16:28 |