|
[Sponsors] |
April 17, 2023, 13:08 |
How to refine mesh based on courant number
|
#1 |
New Member
Huang
Join Date: Feb 2023
Posts: 4
Rep Power: 3 |
I want to refine the mesh use dynamicRefineFvMesh in dynamicMeshDict, but I don't know how to define the scalar filed of courant number(Co) in controlDict, can you tell me how can I do this? Thanks very much!
|
|
April 17, 2023, 13:14 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
||
April 18, 2023, 10:29 |
|
#3 |
New Member
Huang
Join Date: Feb 2023
Posts: 4
Rep Power: 3 |
Thank you very much for your reply, I am referring to this page to modify the program. There are still some problems, and I am trying to solve
|
|
April 18, 2023, 11:58 |
|
#4 |
New Member
Huang
Join Date: Feb 2023
Posts: 4
Rep Power: 3 |
I initially implemented this feature, by setting the functions in controlDict as follow:
functions { Co1 { // Mandatory entries (unmodifiable) type CourantNo; libs ("libfieldFunctionObjects.so"); rho rho; writeControl adjustableRunTime; writeInterval 1e5;//Do not output the Courant number during the calculation } } And then set the "filed" in dynamicMeshDict as "Co". |
|
Tags |
courant number, function object, refine mesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Decomposing meshes | Tobi | OpenFOAM Pre-Processing | 22 | February 24, 2023 10:23 |
[snappyHexMesh] snappyHexMesh stuck when snap is turned on | yukuns | OpenFOAM Meshing & Mesh Conversion | 3 | February 2, 2021 14:05 |
[snappyHexMesh] external flow with snappyHexMesh | chelvistero | OpenFOAM Meshing & Mesh Conversion | 11 | January 15, 2010 20:43 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |