CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Mapping deltaTChem_ on refined mesh

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   August 29, 2012, 11:32
Default Mapping deltaTChem_ on refined mesh
New Member
Tyler V
Join Date: Jul 2012
Posts: 24
Rep Power: 7
tgvosk is on a distinguished road
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
tgvosk is offline   Reply With Quote


basicchemistrymodel, dynamicrefinefvmesh, ode

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
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

All times are GMT -4. The time now is 09:29.