|August 29, 2012, 11:32||
Mapping deltaTChem_ on refined mesh
Join Date: Jul 2012
Posts: 24Rep Power: 5
I am trying to use dynamic mesh refinement in conjunction with a chemistry solver, and am getting errors from the ODE solver. The problem is that deltaTChem_ (a member of basicChemistryModel) is a scalarField that is not being updated when the mesh is updated (its size remains is the old mesh size, which causes a fatal error when the mesh size increases).
I have gotten it working by changing the deltaTChem() method in basicChemistryModel to public, putting it in a volScalarField at the top level which gets mapped, then copying its internalField back into deltaTChem after mapping, but that seems unnecessarily complicated and I'd prefer having a solver that didn't require modifying the main OF source code.
How can I set this field to be mapped automatically by mesh.update()?
I am using OF 2.1.1.
EDIT: This has been resolved in the latest commit to OF 2.1.x per bug report 0000637 by changing deltaTChem_ to a field that gets remapped.
Last edited by tgvosk; August 30, 2012 at 11:47. Reason: Latest 2.1.x update fixed bug
|basicchemistrymodel, dynamicrefinefvmesh, ode|
|Thread||Thread Starter||Forum||Replies||Last Post|
|[ICEM] Hexa mesh, curve mesh setup, bunching law||Anorky||ANSYS Meshing & Geometry||4||November 12, 2014 01:27|
|Layers:problem with curvature||giulio.topazio||OpenFOAM Native Meshers: snappyHexMesh and Others||10||August 22, 2012 09:03|
|2D Mesh Generation Tutorial for GMSH||aeroslacker||Open Source Meshers: Gmsh, Netgen, CGNS, ...||12||January 19, 2012 04:52|
|fluent add additional zones for the mesh file||SSL||FLUENT||2||January 26, 2008 12:55|
|Icemcfd 11: Loss of mesh from surface mesh option?||Joe||CFX||2||March 26, 2007 18:10|