-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the volume coupling case of the old version is replicated in the new version adapter, the data does not match during the writing process #342
Comments
New statement: The old version adapter added an AITS module and two Locationtype_:volume and volsurf to implement volume coupling, and provided tutorials for verification. I successfully added the AITS module and two Locationtype_:volume and volsurf in the new adapter version, and compiled successfully, but when I ran the original tutorials, I encountered the following error (all the data exchanged in the case I ran was similar to velocity, and I used the new version adapter's Locationtype_:volumeCentre and the old version adapter's Locationtype_:volume and volsurf, and all had the same error): tlk@tlk-virtual-machine:~/OpenFOAM/tlk-v2006/run/openfoam-adapter-1.3.1_ooo/try/volCoup-oneWay/flowSolve$ ./run.sh // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Creating block mesh from "system/blockMeshDict" Creating block mesh topology Check topology
Creating block offsets Creating polyMesh from blockMesh
There are no merge patch pairs Writing polyMesh with 0 cellZonesMesh InformationboundingBox: (-0.5 0 0) (3 0.5 0.4)
|
my system:Ubuntu 22.04.4 LTS
preCICE:v1.3.1
openfoamv2006
new version:openfoam_adapter-1.3.1
old version: arpans16/openfoam-adapter-volCoup: 为精确的 openfoam 适配器添加体积耦合器 - 个人作品 --- arpans16/openfoam-adapter-volCoup: Adding volumetric coupling to the precice openfoam adapter - personal work (github.com)
The old version of the adapter added an AITS module and two Locationtype_: volume and volsurf to achieve volume coupling, and provided tutorials for verification, I successfully added the AITS module and two Locationtype_: volume and volsurf in the new version, and the compilation was successful. But when I run the original tutorials, I get the precice error:
ERROR: Input sizes are inconsistent attempting to write 3D data "Velocity" to mesh "flowSolve-Mesh-vol". You passed 36707 vertices and 38043 data components, but we expected 110121 data components (3 x 36707).
All the data exchanged in my run case is similar to the speed, I added some debugging information to the write function in the AITS/VelocityAIT.C file and the writeCouplingData function in Interface.C, and here's the detailed output information:
---[preciceAdapter] [DEBUG] Writing data for Velocity
---[preciceAdapter] [DEBUG] Number of vertices: 36707
---[preciceAdapter] [DEBUG] Total number of cells: 12013
---[preciceAdapter] [DEBUG] Mesh dimension: 3
---[preciceAdapter] [DEBUG] Write: first value of U at bufferIndex: 0 is 0.000000
---[preciceAdapter] [DEBUG] Processing cell 0, bufferIndex: 0
---[preciceAdapter] [DEBUG] Processing cell 1000, bufferIndex: 3000
---[preciceAdapter] [DEBUG] Processing cell 2000, bufferIndex: 6000
---[preciceAdapter] [DEBUG] Processing cell 3000, bufferIndex: 9000
---[preciceAdapter] [DEBUG] Processing cell 4000, bufferIndex: 12000
---[preciceAdapter] [DEBUG] Processing cell 5000, bufferIndex: 15000
---[preciceAdapter] [DEBUG] Processing cell 6000, bufferIndex: 18000
---[preciceAdapter] [DEBUG] Processing cell 7000, bufferIndex: 21000
---[preciceAdapter] [DEBUG] Processing cell 8000, bufferIndex: 24000
---[preciceAdapter] [DEBUG] Processing cell 9000, bufferIndex: 27000
---[preciceAdapter] [DEBUG] Processing cell 10000, bufferIndex: 30000
---[preciceAdapter] [DEBUG] Processing cell 11000, bufferIndex: 33000
---[preciceAdapter] [DEBUG] Processing cell 12000, bufferIndex: 36000
---[preciceAdapter] [DEBUG] Final bufferIndex: 38043
---[preciceAdapter] [DEBUG] Number of written data components: 38043
---[preciceAdapter] [DEBUG] Expected number of data components: 110121
--> FOAM FATAL ERROR:
Error in the preCICE adapter:
Mismatch in written data size for Velocity. Expected: 110121, Actual: 38043
From void adapterInfo(std::string, std::string)
in file Utilities.C at line 32.
FOAM exiting
Looking for any time directories without results (e.g. stray functionObjectProperties files, see openfoam-adapter issue #26 on GitHub)...
The text was updated successfully, but these errors were encountered: