How to change Uref after SnappyHexMesh?

Hi all,

Is it possible to change the Uref in “ABLConditions” in Butterfly, if meshes are already generated?

I have tried with the component “solutionParam”, but it shows:

1. Solution exception:ABLConditions is not a valid OpenFOAM dictionary file. Try one of the files below:
epsilon
k
nut
p
U
T
turbulenceProperties
transportProperties
blockMeshDict
controlDict
fvSchemes
fvSolution
snappyHexMeshDict
probes.

Hello!

You can change Uref at the ABLConditions file itself. If you open your case folder, navigate to 0/ or 0.org/ and open ABLConditions file. You will find the Uref input there.

Additionally, I imagine you could try connecting your Wind tunnel component directly to the solution component (the end of your file). If you then change your Uref there (at the input of wind velocity of the wind tunnel component) and press true on write case only it should update your 0 folder without re-running blockMesh and/or SHM.

Hope this helps!

Kind regards,

Theodore.

Well, we can/should actually give you access to ABLConditions. It’s a special type of a dictionary. Can you open an issue for this on github?

Meanwhile Theodore’s suggestion will work for you. Once you generate the mesh you can set both of the components (blockMesh and snappyHexMesh) to false and connect the case directly from WindTunnel component to solution and run the analysis.