Skip to content
This repository was archived by the owner on May 9, 2022. It is now read-only.

Commit fa65275

Browse files
author
David Blom
authored
Bugfix fluid and solid solvers with different read and write meshes (#311)
1 parent 3e4536a commit fa65275

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/fsi/fluidSolvers/foamFluidSolver.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ foamFluidSolver::foamFluidSolver(
7373
movingPatchesDisplOld[movingPatchIDs[patchI]] = vectorField( size, Foam::vector::zero );
7474
}
7575

76-
matrix readPositions;
77-
getReadPositions( readPositions );
76+
matrix writePositions;
77+
getWritePositions( writePositions );
7878

79-
N = readPositions.rows();
79+
N = writePositions.rows();
8080
dim = mesh.nGeometricD();
8181
data.resize( N, dim );
8282
data.setZero();

src/fsi/solidSolvers/foamSolidSolver.C

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ foamSolidSolver::foamSolidSolver (
7171
movingPatchIDs[patchI] = patchIndex;
7272
}
7373

74+
matrix writePositions;
75+
getWritePositions( writePositions );
76+
77+
N = writePositions.rows();
78+
7479
dim = mesh.nGeometricD();
7580
data.resize( N, dim );
7681
data.setZero();

0 commit comments

Comments
 (0)