CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Normal components (inside & outside) of a vector field found at the interface

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2021, 09:38
Default Normal components (inside & outside) of a vector field found at the interface
  #1
Member
 
X
Join Date: Jan 2019
Posts: 63
Rep Power: 7
mcfdma is on a distinguished road
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 \bold E = -\nabla \phi, which in my header file looks like:
Code:
E = -fvc::grad(Ue);
For my simulation, I'm interested in finding the normal component of E inside and outside the interface.


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))
	);
2. How to use this surface normal vector to find the 2 normal components.

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 17:13.
mcfdma is offline   Reply With Quote

Old   May 18, 2021, 17:15
Default
  #2
Member
 
X
Join Date: Jan 2019
Posts: 63
Rep Power: 7
mcfdma is on a distinguished road
I have attached an image to explain my question better. Normal inside and outside of the surface.
1200px-Normal_vectors2.svg.jpg
mcfdma is offline   Reply With Quote

Reply

Tags
ehd, electrohydrodynamic, interface, normal to surface


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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
[Gmsh] Insatlling gmsh from the source code-issue? CFD-Lover OpenFOAM Meshing & Mesh Conversion 20 June 12, 2018 06:39
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 17:38
Radiation interface hinca CFX 15 January 26, 2014 17:11
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26


All times are GMT -4. The time now is 21:58.