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

volPointInterpolation error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2020, 01:51
Default volPointInterpolation error
  #1
Senior Member
 
krishna kant
Join Date: Feb 2016
Location: Hyderabad, India
Posts: 133
Rep Power: 10
kk415 is on a distinguished road
Hello All,

I am trying to interpolate the interface vector in my two phase flow solver (CLSVOF by chalmers group) by volPointInterpolation.

My code:
Code:
{
// calculate normal vector
gradPsi == fvc::grad(psi);
volPointInterpolation vpi(mesh); //error is coming in this line
pointVectorField pointn1 = vpi.interpolate(gradPsi);
forAll(mesh.cells() , idCell){
gradPsi[idCell] = interpolatePointToCell(pointn1, idCell);}
}
The issue I am facing is strange. The code works well for a square domain mesh (8D*8D*8D) but not for a rectangular mesh (15D*8D*8D). My blockMesh file is this

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 3.1e-3;

vertices
(
    (0 0 0)
    (15 0 0)
    (15 8 0)
    (0 8 0)
    (0 0 8)
    (15 0 8)
    (15 8 8)
    (0 8 8)
);

blocks
(
     hex (0 1 2 3 4 5 6 7) (200 125 125) 
     simpleGrading 
     (
	(
	(0.4 0.125 0.125)
	(0.2 0.75 1)
	(0.4 0.125 8)
	)

	(
	(0.375 0.1 0.125)
	(0.25 0.8 1)
	(0.375 0.1 8)
	)

	(
	(0.375 0.1 0.125)
	(0.25 0.8 1)
	(0.375 0.1 8)
	)
     )
);

edges
(
);

boundary
(
   bottom
    {
        type patch;
        faces
        (
            (1 5 4 0)
        );
    }
    top
    {
        type patch;
        faces
        (
            (3 7 6 2)
        );
    }
    left
    {
        type patch;
        faces
        (
            (0 4 7 3)
        );
    }
    right
    {
        type patch;
        faces
        (
            (2 6 5 1)
        );
    }
    front
    {
        type patch;
        faces
        (
            (3 2 1 0)
        );
    }

    back
    {
        type patch;
        faces
        (
            (6 7 4 5)
        );
    }

);
mergePatchPairs
(
);

// ************************************************************************* //
The error message looks like this
#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::sigSegv::sigHandler(int) at ??:?
#2 ? at sigaction.c:?
#3 Foam::volPointInterpolation::makeInternalWeights(F oam::Field<double>&) at ??:?
#4 Foam::volPointInterpolation::makeWeights() at ??:?
#5 Foam::volPointInterpolation::volPointInterpolation (Foam::fvMesh const&) at ??:?
#6 ? at ??:?
#7 __libc_start_main at ??:?
#8 ? at ??:?
Segmentation fault (core dumped)

Any help is deeply appreciated.
kk415 is offline   Reply With Quote

Old   May 16, 2020, 09:53
Default
  #2
Senior Member
 
krishna kant
Join Date: Feb 2016
Location: Hyderabad, India
Posts: 133
Rep Power: 10
kk415 is on a distinguished road
The mesh is a dynamic Mesh and it seems that is the root cause for the error. How should I modify my code for this?
kk415 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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 01:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 06:01.