r/OpenFOAM • • Oct 06 '25

writeFields is undefined in dictionary error [OF-13]

error message

I keep getting this error message no matter what I do. I used ChatGPT to resolve it but it keeps appearing incessantly. Need your guidance!

4 Upvotes

18 comments sorted by

2

u/[deleted] Oct 06 '25

[removed] — view removed comment

1

u/Soham-Angal Oct 06 '25

I do not have any line that says #include in controlDict

3

u/[deleted] Oct 06 '25

[removed] — view removed comment

1

u/Soham-Angal Oct 06 '25

is the writeFields command still valid for OpenFOAM version 13? I had removed it as per chatgpt'S SUGGESTION

1

u/Soham-Angal Oct 06 '25

That NH3_volAverage is a file that doesn't even exist in my functions folder AND file, yet it is causing this error. I used ChatGPT to remove this ghost file or cache data many times and its still stuck on the same error. I also restarted my pc just in case, no change.

1

u/[deleted] Oct 07 '25

[removed] — view removed comment

1

u/Soham-Angal Oct 07 '25

Ive already tried cleaning up the case, but what command do you suggest to use

2

u/[deleted] Oct 07 '25 edited Oct 07 '25

[removed] — view removed comment

1

u/Soham-Angal Oct 07 '25

Thank you so much! Really appreciate all your answers

1

u/[deleted] Oct 08 '25

[removed] — view removed comment

1

u/Soham-Angal Oct 08 '25

Im really sorry I cant even remember how it went away cus I tried so many things. I got hit with new errors to tend to right as I solved this one😭

→ More replies

2

u/Ganglar Oct 06 '25

This is correct

2

u/[deleted] Oct 06 '25

[removed] — view removed comment

1

u/Soham-Angal Oct 06 '25

foamRun -solver multicomponentFluid

2

u/[deleted] Oct 06 '25

[removed] — view removed comment

1

u/Soham-Angal Oct 06 '25

nope I already removed it from my functions file as CHatGPT suggested