|
[Sponsors] |
Warning in flux mapping table with dynamicRefineFvMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 11, 2022, 16:47 |
Warning in flux mapping table with dynamicRefineFvMesh
|
#1 | ||
New Member
Joshua Christopher
Join Date: Jul 2022
Posts: 7
Rep Power: 4 |
Hello,
I am trying to run a simulation with dynamic meshing using dynamicRefineFvMesh. I am using the EHD solver from https://github.com/iroghair/openFoamEHD but upgraded it to work on OpenFOAM 8. This issue also exists in OpenFOAM 2.3 and the original unmodified version of the EHD solver. I noticed a pair of warnings in my output: Quote:
Code:
correctFluxes ( (phi none) (rhoPhi none) (ghf none) (alphaPhi none) (alphaPhiUn none) (alphaPhi0.phase1 none) (Ue none) (rhoE none) (nHatf none) (rho*phi none) (phiAbs none) (rhoEFlux none) (((-interpolate(sgm)*magSf)*snGrad(Ue)) none) ); Quote:
Code:
surfaceScalarField rhoEFlux = -fvc::interpolate(sgm)*mesh.magSf()*fvc::snGrad(Ue); fvScalarMatrix rhoEEqn ( fvm::ddt(rhoE) + fvm::div(phi, rhoE) + fvc::div(rhoEFlux) ); rhoEEqn.solve(); dynamic Mesh, correct fluxes, surfaceScalarFields However, that thread was not resolved and the suggestions in that thread did not help me. As you can see in the correctFluxes above, I also tried putting (rhoEFlux none) into correctFluxes. Does anyone have any suggestions on how to correctly add that surfaceScalarField with parenthesis into correctFluxes? Thank you, Joshua |
|||
October 18, 2022, 16:17 |
|
#2 |
New Member
Joshua Christopher
Join Date: Jul 2022
Posts: 7
Rep Power: 4 |
Hello everyone,
I was able to resolve the warning by making the following changes to the solver: 1. In createFields.H, create the surfaceScalarField for rhoEFlux: Code:
surfaceScalarField rhoEFlux ( IOobject ( "rhoEFlux", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), -fvc::interpolate(sgm)*mesh.magSf()*fvc::snGrad(Ue) ); 2. In the solver instead of creating a temporary surfaceScalarField at each time step, I just compute the update to the rhoEFlux that is now in createFields.H: Code:
rhoEFlux = -fvc::interpolate(sgm)*mesh.magSf()*fvc::snGrad(Ue); 3. In dynamicMeshDict my correctFluxes looks like: Code:
correctFluxes ( (phi none) (rhoPhi none) (ghf none) (alphaPhi none) (alphaPhiUn none) (alphaPhi0.phase1 none) (Ue none) (rhoE none) (nHatf none) (rho*phi none) (phiAbs none) (rhoEFlux none) ); In my original post you notice there are two warnings, one for the positive and one for the negative sign on rhoEFlux. I had to duplicate this process and swap the sign to get the second warning to go away. I don't know if this is a workaround or the correct method of resolving this, but the warning is gone so presumably I can now correct the rhoEFlux by velocity. Thanks, Joshua |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] discretizer - gmshToFoam | Andyjoe | OpenFOAM Meshing & Mesh Conversion | 13 | March 14, 2012 05:35 |
OpenFOAM Solaris | mamaly60 | OpenFOAM Installation | 13 | May 10, 2010 22:16 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 05:37 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |