|
[Sponsors] |
March 13, 2024, 12:52 |
Limit values of a variable
|
#1 |
Member
Giorgio
Join Date: Mar 2023
Posts: 46
Rep Power: 3 |
I am using mapField to map a coverged solution from a coarse mesh to a fine one. When I re-start the simulation on the fine mesh, the simulation crashes at the beginning of the time loop.
I have discovered that there are a bunch of points (like 5 points) where omega (the turbulence variable) is very large, and I think this is the reason for the crash. Probably mapField is generating this large values do to the fact that the boundaries are not exactly the same (the two meshes are generated with snappyHexMesh). Is there a way to locate these few points and correct omega manually? Thanks in advance |
|
March 13, 2024, 13:19 |
|
#2 | |
Member
Pedro Gouveia
Join Date: Oct 2022
Location: Portugal
Posts: 64
Rep Power: 4 |
Quote:
|
||
March 13, 2024, 13:28 |
|
#3 |
Member
Giorgio
Join Date: Mar 2023
Posts: 46
Rep Power: 3 |
||
March 13, 2024, 13:57 |
|
#4 |
Member
Shravan
Join Date: Mar 2017
Posts: 73
Rep Power: 9 |
Hello,
You have two options, Option 1: You can use limitFields functionObject: https://www.openfoam.com/documentati...mitFields.html Note that the functionObject gets called in the beginning of the time loop, so it should work before things are computed in the first time step. Check here: What is the trigger of the function objects?? Option 2: If you can add piece of code inside your solver and recompile your solver, then I suggest you add something like this, before the time loop. Lets say that the maximum allowable value of omega is max_value. Then use Code:
omega = min(omega,max_value); |
|
Tags |
limiting, mapfield |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Y+ values exceed limit! | James38 | STAR-CCM+ | 3 | August 9, 2019 12:26 |
How to read variable values on a surface | Comi | Fluent UDF and Scheme Programming | 3 | April 3, 2019 22:33 |
3D equation, loading values for variable Cp from txt file with time-value columns | AJAY BHANDARI | OpenFOAM Programming & Development | 11 | January 1, 2016 06:16 |
How to monitor variable values of point at t=0 sec | yunhee | CFX | 3 | February 13, 2008 13:45 |
Tracing the variable values | Neser25 | CFX | 0 | November 7, 2005 11:26 |