Skip to content
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

FEniCS OpenFOAM perp-flap and cyl-flap #38

Merged
merged 55 commits into from
Aug 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
f8ae0d5
Create Structure
RafalKulaga Feb 22, 2019
be526ac
Delete Structure
RafalKulaga Feb 22, 2019
97afe60
Added baseline code (no coupling) for future reference
RafalKulaga Feb 22, 2019
527e595
Merge branch 'structural' of https://github.com/precice/tutorials int…
RafalKulaga Feb 22, 2019
ae23279
Included some preCICE functionalities, error in initalization
RafalKulaga Feb 27, 2019
ace0349
Modified README.md
RafalKulaga Feb 27, 2019
808dcab
Using old configs (new caused some trouble)
RafalKulaga Feb 27, 2019
2268219
Corrected config files
RafalKulaga Feb 27, 2019
f528c94
Added TODO.md, did some cleaning
RafalKulaga Mar 7, 2019
8222f21
Update TODO.md
BenjaminRodenberg Apr 10, 2019
4e4d756
Delete TODO.md
BenjaminRodenberg Apr 10, 2019
217ee66
Update README.md
BenjaminRodenberg Apr 10, 2019
ce1aa09
Added Markers for coupling boundary and made some details more consis…
richahert Apr 25, 2019
0a99163
baseline for structure in FSI: the ipynb is a 2d structure case worki…
richahert Apr 25, 2019
2c65f87
remove subdomain marker and add first precice-adapter calls
richahert Apr 30, 2019
c3ca4cf
ready for testing now
richahert May 7, 2019
0c73b5e
started inlcluding reference, dummy and OF in one set
richahert May 10, 2019
d9bd981
Implemented reference case, needs some testing
richahert May 14, 2019
4fe0d26
config-files for different options in the solid simulation
richahert May 14, 2019
fdcb360
bugfix: updating fields and precice.advance should be working correct…
richahert May 22, 2019
7896a2f
-bugfix for lowest node
richahert Jun 18, 2019
4388175
Perpendicular Flap tutorial for FEniCS and OpenFOAM
richahert Jul 9, 2019
cd0179e
Create REAME.md
richahert Jul 9, 2019
46805b3
Allclean should clean all the files that are created now
richahert Jul 9, 2019
797f1bb
First Implementation of cyl-flap. Main read approach is wrong and wil…
richahert Jul 31, 2019
2837129
change the OF simulation plane to xy-plane
richahert Aug 1, 2019
098676b
quick, but not exact workaround for the force-scaling issue, changed …
richahert Aug 1, 2019
53aa87e
add runFluid
richahert Aug 1, 2019
a36f9a0
Rotate domain from XZ plane into XY plane. Still buggy, but mesh look…
BenjaminRodenberg Jul 31, 2019
196a9a7
Merge branch 'master' into fenics-of-fsi-ef
BenjaminRodenberg Aug 1, 2019
9c3ae9c
put sim in xy plane
richahert Aug 1, 2019
0e6e236
Revert "Rotate domain from XZ plane into XY plane. Still buggy, but m…
BenjaminRodenberg Aug 1, 2019
3b667da
add gitignore
BenjaminRodenberg Aug 1, 2019
1348503
Add names to data
BenjaminRodenberg Aug 1, 2019
06b1180
refine .gitignore
richahert Aug 2, 2019
b18c21a
Merge remote-tracking branch 'origin/fenics-of-fsi-ef' into fenics-fs…
richahert Aug 2, 2019
6767eee
implemented PointSources, not converging yet
richahert Aug 6, 2019
e191629
Point Sources look correct
richahert Aug 7, 2019
ff46f36
generalized filter for dirichlet- and Force nodes
richahert Aug 7, 2019
ef3f220
Add Fluid Case for Cyl Flap
richahert Aug 7, 2019
f2121b3
add files in root dir
richahert Aug 8, 2019
299cfb2
add solid-case
richahert Aug 8, 2019
ccda234
add gitignore
richahert Aug 8, 2019
e790563
correct gitignore
richahert Aug 8, 2019
fba2108
refine gitignore
richahert Aug 8, 2019
a2a0e28
add plot_tip and change OF solver
richahert Aug 8, 2019
dbac506
Merge Point-Sources Approach to PR
richahert Aug 8, 2019
b6a706c
adjust OF timestep to precice timestep
richahert Aug 14, 2019
9591a01
remove unnecessary code
richahert Aug 14, 2019
ea5861b
remove unnecessary code
richahert Aug 14, 2019
e2d9d0a
Add workaround for wrong output for visualization
BenjaminRodenberg Aug 14, 2019
70c4743
add minimal README
BenjaminRodenberg Aug 15, 2019
89e0bbf
reduce output frequency, such that both simulations are in sync when …
BenjaminRodenberg Aug 15, 2019
e4b40cb
remove Fluid/0/ at very end. See https://github.com/precice/openfoam-…
BenjaminRodenberg Aug 15, 2019
9789f5c
add some comments in the README files regarding #40
BenjaminRodenberg Aug 15, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions FSI/cylinderFlap/OpenFOAM-FEniCS/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Fluid
!Fluid/0
!Fluid/0.orig
!Fluid/constant
!Fluid/system
!Fluid/Fluid.foam
!Fluid/precice-adapter-config.yml
Solid
!Solid/cyl-flap.py
!Solid/precice-adapter-config-fsi-s.json
*.log
precice-fenics-events.json
precice-Fluid-events.json
65 changes: 65 additions & 0 deletions FSI/cylinderFlap/OpenFOAM-FEniCS/Fluid/0.orig/U
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{

cylinder
{
type noSlip;
}

flap
{
type movingWallVelocity;
value uniform (0 0 0);
}

top
{
type noSlip;
}

bottom
{
type noSlip;
}

inlet
{
// Time-varying inlet velocity
type uniformFixedValue;
uniformValue table
(
( 0 ( 0 0 0 ) )
( 2. ( 2. 0 0 ) )
( 100 ( 2. 0 0 ) )
);
}

outlet
{
type zeroGradient;
}

front
{
type empty;
}
back
{
type empty;
}
}

// ************************************************************************* //
57 changes: 57 additions & 0 deletions FSI/cylinderFlap/OpenFOAM-FEniCS/Fluid/0.orig/p
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
cylinder
{
type zeroGradient;
}

flap
{
type zeroGradient;
}

top
{
type zeroGradient;
}

bottom
{
type zeroGradient;
}

inlet
{
type zeroGradient;
}

outlet
{
type fixedValue;
value uniform 0;
}

front
{
type empty;
}
back
{
type empty;
}
}

// ************************************************************************* //
58 changes: 58 additions & 0 deletions FSI/cylinderFlap/OpenFOAM-FEniCS/Fluid/0.orig/pointDisplacement
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
FoamFile
{
version 2.0;
format ascii;
class pointVectorField;
object pointDisplacement;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 0 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
inlet
{
type fixedValue;
value uniform (0 0 0);
}

outlet
{
type fixedValue;
value uniform (0 0 0);
}

cylinder
{
type fixedValue;
value $internalField;
}
flap
{
type fixedValue;
value $internalField;
}

top
{
type slip;
}

bottom
{
type slip;
}
front
{
type empty;
}
back
{
type empty;
}
}

// ************************************************************************* //
64 changes: 64 additions & 0 deletions FSI/cylinderFlap/OpenFOAM-FEniCS/Fluid/0.orig/vorticity
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object vorticity;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
cylinder
{
type calculated;
value uniform (0 0 0);
}

flap
{
type calculated;
value uniform (0 0 0);
}

inlet
{
type calculated;
value uniform (0 0 0);
}

outlet
{
type calculated;
value uniform (0 0 0);
}

top
{
type calculated;
value uniform (0 0 0);
}

bottom
{
type calculated;
value uniform (0 0 0);
}

front
{
type empty;
}
back
{
type empty;
}
}


// ************************************************************************* //
65 changes: 65 additions & 0 deletions FSI/cylinderFlap/OpenFOAM-FEniCS/Fluid/0/U
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{

cylinder
{
type noSlip;
}

flap
{
type movingWallVelocity;
value uniform (0 0 0);
}

top
{
type noSlip;
}

bottom
{
type noSlip;
}

inlet
{
// Time-varying inlet velocity
type uniformFixedValue;
uniformValue table
(
( 0 ( 0 0 0 ) )
( 2. ( 2. 0 0 ) )
( 100 ( 2. 0 0 ) )
);
}

outlet
{
type zeroGradient;
}

front
{
type empty;
}
back
{
type empty;
}
}

// ************************************************************************* //
57 changes: 57 additions & 0 deletions FSI/cylinderFlap/OpenFOAM-FEniCS/Fluid/0/p
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
cylinder
{
type zeroGradient;
}

flap
{
type zeroGradient;
}

top
{
type zeroGradient;
}

bottom
{
type zeroGradient;
}

inlet
{
type zeroGradient;
}

outlet
{
type fixedValue;
value uniform 0;
}

front
{
type empty;
}
back
{
type empty;
}
}

// ************************************************************************* //
Loading