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

buoyantFoam problem with meshToMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2024, 09:59
Default buoyantFoam problem with meshToMesh
  #1
New Member
 
Join Date: Jan 2024
Posts: 10
Rep Power: 2
gmax is on a distinguished road
Hi everyone, I'm trying to make a simulation of a moving inflow, it should simulate the wearing out of an electrode. The Openfoam version is OF.org V10.

In this process I used dynamicMeshDict to make the mesh move, when the deformation of the mesh was no longer acceptable I wanted to do a meshToMesh.
In this step I have an error:
Code:
 FOAM FATAL ERROR:
 V0 is not available

 From function const Internal& Foam::fvMesh::V0() const
 in file fvMesh/fvMeshGeometry.C at line 296.
I'm trying to understand what's wrong but comparing it with movingCone I don't think there's any error in the setting.



Searching online I found that this problem was present in XiFoam as "XiFoam: Removed redundant rhoEqn solution after mesh topology change". The git hash is

7dd5c4d3fac0704492a5b81f3315abe7d3443a6f .


I tried to look for some redundancy in this case too but I couldn't find anything. Does anyone know this error or how to fix it

?
gmax is offline   Reply With Quote

Old   April 16, 2024, 11:40
Default
  #2
New Member
 
Join Date: Jan 2024
Posts: 10
Rep Power: 2
gmax is on a distinguished road
can anyone help me?
gmax is offline   Reply With Quote

Old   April 17, 2024, 12:22
Default
  #3
New Member
 
Join Date: Jan 2024
Posts: 10
Rep Power: 2
gmax is on a distinguished road
At the moment I think the error occurs in this area of ​​the code:

Code:
         autoPtr<volVectorField> rhoU;

         if (rhoUf.valid())
         {
             rhoU = new volVectorField("rhoU", rho*U);
         }

       // Update the mesh for topology change, mesh to mesh mapping

         mesh.update()
I think something is interfering with mesh.update(). I tried to understand in update() of the MeshToMesh file what could go wrong but I still haven't been able to figure out what's wrong.if I comment mesh.update() the count continues correctly.


All fields are printed correctly (even V0). It makes me think something is going on with directories.
gmax is offline   Reply With Quote

Old   April 23, 2024, 03:48
Default
  #4
New Member
 
Join Date: Jan 2024
Posts: 10
Rep Power: 2
gmax is on a distinguished road
it seems that the error is generated from this point, we are in fvMeshGeometry.C.


Code:
 const Foam::volScalarField::Internal& Foam::fvMesh::V0() const
293 {
294
295     if (!V0Ptr_)
296     {
297         FatalErrorInFunction
298             << "V0 is not available"
299             << abort(FatalError);
300     }
301
302
303     return *V0Ptr_;
304 }
What I understand is that the *V0Ptr_ pointer is missing, inside the fvMesh.C inside the file I find a lot of information that has to do with V0Ptr_ does anyone know where the error could be?
gmax 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
Problem with interFoam; Wave/wiggle alpha1 behavior JonW OpenFOAM 10 February 4, 2023 07:27
SU2-7.0.1 on ubuntu 18.04 hyunko SU2 Installation 7 March 16, 2020 04:37
BuoyantBoussinesqSimpleFoam_Facing problem Mondal131211 OpenFOAM Running, Solving & CFD 1 April 10, 2019 19:41
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


All times are GMT -4. The time now is 14:48.