CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions > OpenFOAM CC Toolkits for Fluid-Structure Interaction

[FSI] FsiFoam 4.0 - can not run tutorials

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree11Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2018, 06:52
Default
  #21
New Member
 
Join Date: Oct 2014
Location: Lafayette, LA
Posts: 13
Rep Power: 7
gigliagarf is on a distinguished road
Quote:
Originally Posted by rr3245 View Post
All/hassan1201, I had help from a member called alia in a separate thread.

I inserted one line of code into the evolve() function for each fluidSolver (i.e. consistentIcoFluid.C, icoFluid.C, pisoFluid.C)

Insert

Code:
mesh.schemesDict().setFluxRequired(p().name());
after

Code:
const fvMesh& mesh = fluidSolver::mesh();
...into:
src/fluidSolidInteraction/fluidSolvers/consistentIcoFluid/consistentIcoFluid.C
src/fluidSolidInteraction/fluidSolvers/icoFluid/icoFluid.C
src/fluidSolidInteraction/fluidSolvers/pisoFluid/pisoFluid.C

Then I ran ./Allwmake to update and the tutorial ran fine. RH.

The above will work, but if you have dependencies built upon fsifoam, for example some of the Chalmers OpenFoam stuff, this will not work. Specifically I tried it for "An opensource solver for wave-induced FSI problems" by Huang and had troubles. A more clean way is to follow the pictures I've attached.
p { margin-bottom: 0.25cm; line-height: 120%; }
Attached Images
File Type: jpg pastedImage.jpg (131.4 KB, 62 views)
File Type: png pastedImage(1).png (120.8 KB, 57 views)
rr3245 and sangeet like this.
gigliagarf is offline   Reply With Quote

Old   January 16, 2019, 04:53
Default
  #22
Member
 
...
Join Date: Jan 2019
Posts: 31
Rep Power: 3
popa is on a distinguished road
https://www.cfd-online.com/Forums/op...-movement.html
popa is offline   Reply With Quote

Old   March 27, 2019, 07:05
Default
  #23
New Member
 
xena
Join Date: Mar 2019
Posts: 9
Rep Power: 2
xena is on a distinguished road
Hello,
I have added the line on the scripts but the tutos on fsiFoam don't work, (error : flux requested but p not specified in the fluxRequired sub-dictionary of fvSchemes )

does any one have another trick or solution ??
xena is offline   Reply With Quote

Old   March 27, 2019, 10:39
Default
  #24
New Member
 
Sam
Join Date: Nov 2017
Posts: 24
Rep Power: 4
anufagbemi is on a distinguished road
Hi Xena,
include the following line of code to the source code of your fluid solver. Typically in the evolve section, after the fvMesh definition. Hope that helps.

Code:
mesh.schemesDict().setFluxRequired(p().name())
Regards,
Sam
anufagbemi is offline   Reply With Quote

Old   January 25, 2020, 11:11
Default
  #25
Member
 
Eren
Join Date: Aug 2018
Posts: 37
Rep Power: 4
ErenC is on a distinguished road
Hello, I am having same issue.

Code:
flux requested but p not specified in the fluxRequired sub-dictionary of fvSchemes.

    From function fvMatrix<Type>::flux()
    in file lnInclude/fvMatrix.C at line 1046.

FOAM aborting

Aborted (core dumped)
When I add this line:
Code:
   mesh.schemesDict().setFluxRequired(p.name());
to foam-extend-4.0/FluidSolidInteraction/src/fluidSolidInteraction/fluidSolvers/icoFluid/icoFluid.C and/pisoFluid.C
Code:
    // Prepare for the pressure solution
    label pRefCell = 0;
    scalar pRefValue = 0.0;
    setRefCell(p_, fluidProperties(), pRefCell, pRefValue);
   mesh.schemesDict().setFluxRequired(p.name());
I get in terminal:
Code:
fluidSolvers/pisoFluid/pisoFluid.C:271:40: error: ‘((Foam::fluidSolvers::pisoFluid*)this)->Foam::fluidSolvers::pisoFluid::p’ does not have class type

Can someone point me to the right direction?

I also would like to add, I changed fvMatrix.c regarding to the post in this thread. But I don't know where to type "wmake libso" so I used "./Allwmake" in foam-extend-4.0/src. Is it wrong?


Eren.

Last edited by ErenC; January 25, 2020 at 14:19.
ErenC is offline   Reply With Quote

Old   January 26, 2020, 11:38
Default
  #26
Member
 
Eren
Join Date: Aug 2018
Posts: 37
Rep Power: 4
ErenC is on a distinguished road
It took like 4 days, finally works...

Last edited by ErenC; January 26, 2020 at 17:41.
ErenC is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[waves2Foam] Compiled with foam-extend-4.0, but I cannot run tutorials in parallel lxwd OpenFOAM Community Contributions 7 February 22, 2017 03:13
OpenFOAM can't be run in parallel in cluster sibo OpenFOAM Running, Solving & CFD 4 February 21, 2017 17:29
parallel run is slower than serial run (pimpleFoam) !!! mechy OpenFOAM 18 August 17, 2016 18:19
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 19:45
[mesh manipulation] Cannot get refineMesh to run in parallel smschnob OpenFOAM Meshing & Mesh Conversion 2 June 3, 2014 12:20


All times are GMT -4. The time now is 11:31.