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

Passing air/solid boundary data with EOF-Lib

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 19, 2021, 22:23
Default Passing air/solid boundary data with EOF-Lib
  #1
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
Good evening to all

My openfoam code (compressible Navier Stokes, energy and ion continuity equations) operates on an air mesh only which mesh is a subset of the
air-solid mesh that is operated on by my elmer code (it calculates the Poisson equation). The elmer code needs the surface charge on the air/solid boundary calculated by the openfoam code while the latter needs the electric field from the elmer code.

Can EOF-Lib handle the above message passing ?

Regards

Marc
celestial is offline   Reply With Quote

Old   August 30, 2021, 23:40
Default
  #2
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
I will give some hints

I use Gmsh to create 2D meshes air.msh and solid.msh

Transform air.msh to the openfoam format.

Transform air.msh and solid.msh to the ElmerSolver format using

ElmerGrid 14 2 air.msh

ElmerGrid 14 2 solid.msh

and then combine the two together with

ElmerGrid 2 2 air -in solid -unite -out both

In directory both, it will be observed that all solid node numbers are shifted by the number of nodes in air.msh but the air node numbers are left unchanged.


This is great because it means that air field variables can be passed between Elmer and openfoam with the help of the coupling provided by EOF-Lib. There can be no confusion since openfoam and elmer use the same node numbering for the air domain !

The coupling involves interpolation between openfoam's cell values and elmer's node values. Hopefully this is not done on a boundary (here it is node to node)

Another problem is air.msh and solid.msh are not necessarily conformal on their common boundary.

Any comments ?
celestial is offline   Reply With Quote

Reply


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
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 01:44
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
domain imbalance for enrgy equation happy CFX 14 September 6, 2012 01:54
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 17:27


All times are GMT -4. The time now is 08:54.