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

Adaptive mesh refinement and totalFlowRateAdvectiveDiffusive

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2019, 10:43
Default Adaptive mesh refinement and totalFlowRateAdvectiveDiffusive
  #1
New Member
 
Join Date: May 2019
Posts: 1
Rep Power: 0
qwerty13 is on a distinguished road
Hi all,


I am simulating the transport of a passive scalar with OpenFOAM 2.2.x. using a modified solver with adaptive mesh refinement just to check how well AMR works. There are two things I wanted to ask in case someone can help:
  1. If the boundary condition for the scalar at the inlet is set to fixedValue everything works well. However, if it set to totalFlowRateAdvectiveDiffusive then the simulation always crashes right after the lowerRefineLevel is reached in the dynamicRefineFvMesh file. Essentially the passive scalar equation cannot be solved (No Iterations 1001) and the scalar values just explode. Does somebody perhaps have any clue regarding this matter?
  2. During the simulation I track the mass flow rate coming inside the domain from the inlet patch with the following piece of code:
massFlowRate
{
type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so");
enabled true;
outputControl runTime; //outputTime;
writeInterval 0.005;
log false;
valueOutput false;
source patch;
sourceName inlet;
operation sum;
fields
(
phi
);
}



Regardless what the boundary condition is for the scalar at the inlet

(fixedValue or totalFlowRateAdvectiveDiffusive) when the adaptive mesh
refinement occurs then the calculated mass flow rate at the inlet is 4

times less than it should be which obviously has to do with the mesh

refinement. Any ideas on how to circumvent this problem?


Thanks in advance for any hint or help.
qwerty13 is offline   Reply With Quote

Reply

Tags
adaptive mesh refinement


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 running killed! Mark JIN OpenFOAM Meshing & Mesh Conversion 7 June 14, 2022 01:37
[snappyHexMesh] snappyHexMesh does not create any mesh except one for the reference cell Arman_N OpenFOAM Meshing & Mesh Conversion 1 May 20, 2019 17:16
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
[snappyHexMesh] snappyHexMesh aborting Tobi OpenFOAM Meshing & Mesh Conversion 0 November 10, 2010 03:23


All times are GMT -4. The time now is 11:25.