Hi there,
Fluid (OpenFOAM) + Solid (solids4Foam) case, writeInterval=0.1 sec, time-window-size=0.005 sec. Case running fine. Many unwanted data are written besides the results data:
Inside the folder, only one file is found:
Please advise how to avoid this? Many thanks.
Makis
March 23, 2025, 4:13pm
2
@Ya_Squall this is a known issue that we cannot fix at the adapter level. It is a conflict of how OpenFOAM handles function objects, and how we handle checkpointing.
As a workaround, we provide this script in our tutorials:
#! /bin/sh
# Cleaning up stray functionObjectProperties files, see https://github.com/precice/openfoam-adapter/issues/26
openfoam_remove_empty_dirs() {
(
set -e -u
echo "Cleaning up any time directories without results"
for f in [0-9]* [0-9]*.[0-9]*; do
if ! [ -f "${f}/U" ] && ! [ -f "${f}/T" ] && ! [ -f "${f}/U.gz" ] && ! [ -f "${f}/T.gz" ] && ! [ -f "${f}/D" ] && ! [ -f "${f}/pointD" ] && ! [ -f "${f}/DD" ] && ! [ -f "${f}/pointDD" ] && ! [ -f "${f}/D.gz" ] && ! [ -f "${f}/pointD.gz" ] && ! [ -f "${f}/DD.gz" ] && ! [ -f "${f}/pointDD.gz" ]; then
rm -rf "${f}"
fi
done
if [ -d processor0 ]; then
for d in processor*; do
cd "${d}"
for f in [0-9]* [0-9]*.[0-9]*; do
if ! [ -f "${f}/U" ] && ! [ -f "${f}/T" ] && ! [ -f "${f}/U.gz" ] && ! [ -f "${f}/T.gz" ] && ! [ -f "${f}/D" ] && ! [ -f "${f}/pointD" ] && ! [ -f "${f}/DD" ] && ! [ -f "${f}/pointDD" ] && ! [ -f "${f}/D.gz" ] && ! [ -f "${f}/pointD.gz" ] && ! [ -f "${f}/DD.gz" ] && ! [ -f "${f}/pointDD.gz" ]; then
rm -rf "${f}"
fi
This file has been truncated. show original
system
Closed
March 26, 2025, 4:14pm
3
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.