|
[Sponsors] |
Normal components (inside & outside) of a vector field found at the interface |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 16, 2021, 10:38 |
Normal components (inside & outside) of a vector field found at the interface
|
#1 |
Member
X
Join Date: Jan 2019
Posts: 63
Rep Power: 7 |
Hi.
I'm working on a two-phase flow simulation and have modified the interFoam solver to include the electrostatics component to get an electrohydrodynamic solver (similar to http://openfoamwiki.net/index.php/Co...ectromagnetics) I'm calculating the electric field using the gradient of electric potential given by the equation , which in my header file looks like: Code:
E = -fvc::grad(Ue); I've tried Paraview, where I applied contour to get the isosurface followed by normal glyphs. This gave me the normal component of E outside of the interface, and I was unable to get the normal component of E inside. Also, this isn't a quick process, and I want to know how I can createFields for both the normal components in my solver. What I plan to understand is the following: 1. How to acquire(&code) the surface normal vector. This is what I've done (can be wrong, and if it is, do let me know). Code:
surfaceVectorField phiNormal ( mesh.Sf()/mesh.magSf()//(fvc::reconstruct(phi))/mag(fvc::reconstruct(phi)) ); I appreciate your time and would be grateful if I can get some assistance on this area. Last edited by mcfdma; May 18, 2021 at 18:13. |
|
May 18, 2021, 18:15 |
|
#2 |
Member
X
Join Date: Jan 2019
Posts: 63
Rep Power: 7 |
I have attached an image to explain my question better. Normal inside and outside of the surface.
1200px-Normal_vectors2.svg.jpg |
|
Tags |
ehd, electrohydrodynamic, interface, normal to surface |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
[Gmsh] Insatlling gmsh from the source code-issue? | CFD-Lover | OpenFOAM Meshing & Mesh Conversion | 20 | June 12, 2018 07:39 |
Question about adaptive timestepping | Guille1811 | CFX | 25 | November 12, 2017 18:38 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 05:26 |