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

create an IOobject with the mesh surfaces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2022, 10:35
Default create an IOobject with the mesh surfaces
  #1
New Member
 
Lollo
Join Date: Aug 2019
Posts: 4
Rep Power: 6
MarcDP is on a distinguished road
Hello everyone,

I am trying to do something that should be quite easy with no success. My idea is to create an IOobject with the values of the surfaces of hte mesh elements. I am modifying the scalar transport solver. In the createFields.h, I added:

Code:
surfaceScalarField faceSurfs
 (
     IOobject
     (
         "faceSurfs",
         runTime.timeName(),
         mesh,
         IOobject::NO_READ,
         IOobject::AUTO_WRITE
     ),
     mesh,
     dimensionedScalar("zero", dimArea, 0.0)
 );

 faceSurfs.ref() = mesh.magSf();
However this calculate the areas only of the elements of the internal mesh and not on the boundary faces. Anyone can help? it is quite urgent

Thanks!
MarcDP is offline   Reply With Quote

Old   April 13, 2022, 11:17
Default
  #2
New Member
 
Lollo
Join Date: Aug 2019
Posts: 4
Rep Power: 6
MarcDP is on a distinguished road
Bump!

hopefully somebody has some help for this
MarcDP 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
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
[ICEM] how to create a 2d tri mesh with quad mesh in the boundary layer seal2013 ANSYS Meshing & Geometry 3 October 6, 2013 16:09
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 09:03
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10


All times are GMT -4. The time now is 04:34.