CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[foam-extend.org] Very big problem with source bashrc foam-extend 4.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2017, 04:47
Default Very big problem with source bashrc foam-extend 4.0
  #1
New Member
 
Ben
Join Date: Jun 2017
Posts: 2
Rep Power: 0
Nexfast is on a distinguished road
Hi everybody ,

I set openfoam extended to try HronTurek's tutorial with the solver icoFsiElasticNonLinULSolidFoam. Also, i used Openfoam4.1 and no problem to use icoFoam or pisoFoam solver, it works very well !

My problem is about openfoam extended : i have sourced the bashrc and did allwmake.firstinstall, it looks works but when I do ./Allrun in HronTurek tutorial, it makes empty log file in solid and fluid repository and in this log file it is written "./Allrun: 55: ./Allrun: icoFsiElasticNonLinULSolidFoam: not found" for log.icoFsiElasticNonLinULSolidFoam. All others log.file are empty.

If i source with the bashrc of Openfoam4.1, log.file in openfoamextended are well computed except the log.icoFsiElasticNonLinULSolidFoam because i think the bashrc doesn't active the icoFsiElasticNonLinULSolidFoam solver.

I work on a virtual toolbox. Openfoam4.1 are set in /opt/... (i often have to use "sudo command") and i set openfoam extended 4.0 in my home directory .... I don't know what is the problem. I work on that for 2 days yet whithout solving this problem

I would be very grateful if somebody could help me !!!
NewFast.
Nexfast is offline   Reply With Quote

Old   July 2, 2017, 20:08
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answers:
  1. Regarding "openfoam extended", the technical name is "foam-extend"
  2. Start a new terminal and run this command:
    Code:
    export | grep FOAM
    Does it give any output lines? Because if it does, then it's because it's automatically loading the OpenFOAM 4.1 environment.
  3. To keep versions of OpenFOAM/foam-extend from interfering with each other, follow the instructions given here: https://openfoamwiki.net/index.php/I...nFOAM_versions
  4. The solver icoFsiElasticNonLinULSolidFoam is built by default when building foam-extend 4.0. It's possible that something went wrong while building foam-extend, which would explain which this solver is not available.
    • If this was the case, then after you've corrected your "~/.bashrc" as I indicated in the bullet point #3 above, try following these steps:
      1. Then start a new terminal window and activate only the environment for foam-extend 4.0, by running:
        Code:
        fe40
        This is meant to be the alias defined in accordance to the instructions given above in #3.
      2. Then run the following commands:
        Code:
        foam
        ./Allwmake > log.make 2>&1
      3. Finally, when it's complete, use the following command to zip the file "log.make":
        Code:
        gzip < log.make > log.make.gz
      4. Then attach the file "log.make.gz" to your next post. This will tell us all of the build errors that are happening.

__________________
wyldckat is offline   Reply With Quote

Old   July 3, 2017, 12:01
Default
  #3
New Member
 
Ben
Join Date: Jun 2017
Posts: 2
Rep Power: 0
Nexfast is on a distinguished road
Hi Wyldckat,

1) I attached the log.file "log.make.gz"

2 ) I activate the environment for foam-extend 4.0, by running fe40 as you said. Now, All the log.file are compiled with the letter C. It is running as when i use the source of openfoam4.1. Only log.file log.changeDictionary is not running. As you can see just below, i put "paraFoam" and i have this error:

Quote:
VirtualBox:~/foam/foam-extend-4.0/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/fluid$ paraFoam
created temporary 'fluid.OpenFOAM'


--> FOAM FATAL IO ERROR:

patch type 'patch' not constraint type 'empty'
for patch frontAndBackPlanes of field U in file "/home/rayan/foam/foam-extend-4.0/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/fluid/0/U"

file: /home/rayan/foam/foam-extend-4.0/tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/fluid/0/U::boundaryField::frontAndBackPlanes from line 61 to line 61.

From function emptyFvPatchField<Type>::emptyFvPatchField
(
const fvPatch& p,
const Field<Type>& field,
const dictionary& dict
)

in file fields/fvPatchFields/constraint/empty/emptyFvPatchField.C at line 100.

FOAM exiting

Inconsistency detected by ld.so: dl-close.c: 811: _dl_close: Assertion `map->l_init_called' failed!
I have replaced the variable "empty" by zeroGradient also for fluid/0/p and fluid/0/u and paraFoam works but there are juste the piece and no fsi simulation during the period.

I check with incompressible tutorials and it works well as with source openfoam4.1. But why do I have this error message ?

Many Thanks for your previous answer and you future answer I hope !
Attached Files
File Type: gz log.make.gz (67.1 KB, 4 views)
Nexfast is offline   Reply With Quote

Old   July 9, 2017, 08:19
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Nexfast,

I am a bit concerned that you didn't describe what each step that I listed had given you, so I hope you've done all of the steps correctly.


foam-extend 4.0 did not finish building properly because it ran out of disk space, as detailed in a few error messages that were listed in "log.make":
Code:
patchIntegrate.C:172:1: fatal error: error writing to /tmp/ccmpExt8.s: No space left on device
There were also "*.dep" files that were incomplete, leading to several other error messages.

The application "changeDictionary" isn't even listed in the "log.make" file, therefore that would explain why it didn't run.


From what I can figure out, your machine ran out of disk space on two locations:
  • "/tmp"
  • "/home/$USERNAME/foam/foam-extend-4.0/applications/"
You can check the available disk space on each one by running:
Code:
df -h /tmp
df -h /home/$USERNAME/foam/foam-extend-4.0/applications/
You can clear some disk space by deleting the intermediate files and folders that are placed inside the folder "ThirdParty/rpmBuild/BUILD" within "foam-extend-4.0".


Once you've cleared up some disk space, I believe you can fix some of the broken parts by running the following commands:
Code:
foam
grep "\.dep" log.make  | sed -e 's=\([a-zA-Z]*\.dep\).*=\1=' -e "s=.*'==" | sort -u | xargs -I {} find $FOAM_APP -name {} | xargs rm
The second command will look for the "*.dep" files that were indicated in "log.make" and delete them.

Then try building again:
Code:
./Allwmake > log.make2 2>&1
gzip < log.make2 > log.make2.gz
Then attach the new log file "log.make2.gz", so that we can check if there are any other applications that failed to build.



As for the tutorial case, it can't work properly without changeDictionary being properly built.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   August 28, 2018, 22:45
Default
  #5
New Member
 
Igor Fleury
Join Date: Aug 2018
Posts: 4
Rep Power: 8
iigorfleury is on a distinguished road
Good night, wyldckat!

Sorry for reviving this thread but I really need some help and I think you can easily help me. I'm a beginner at openfoam, spent two months learning the basics of the software (openfoam6) and I'm happy with my learning process.
The thing is, I'll have to use Immersed Boundary Method for my final project so I had to downloand another version, foam extend 4.0. At the time I have both installed on my computer, of6 installed on /opt and fe40 installed on home. Everything works perfectly on of6 but nothing works on foamextend4. When I try to run the cavity tutorial, for example, after typing icoFoam, it gets me back:


--> FOAM FATAL IO ERROR:
Unknown asymmetric matrix solver BiCGStab

Valid asymmetric matrix solvers are :

4
(
GAMG
PBiCG
PBiCGStab
smoothSolver
)


file: /home/igor/foam/igor-4.0/run/tutorials/incompressible/icoFoam/cavity2/system/fvSolution.solvers.U from line 29 to line 32.

From function static Foam::autoPtr<Foam::lduMatrix::solver> Foam::lduMatrix::solver::New(const Foam::word&, const Foam::lduMatrix&, const Foam::FieldField<Foam::Field, double>&, const Foam::FieldField<Foam::Field, double>&, const lduInterfaceFieldPtrsList&, const Foam::dictionary&)
in file matrices/lduMatrix/lduMatrix/lduMatrixSolver.C at line 101.

FOAM exiting



Also tried to run some of the ImmersedBoundary tutorials but no success also.


Sorry for the basic question, I really hope you can help me someway.
Thanks in advance! =)
iigorfleury is offline   Reply With Quote

Old   September 1, 2018, 16:34
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: It seems to be because OpenFOAM 6 is still being used and not foam-extend 4.0. See the following section on how to keep OpenFOAM/foam-extend versions apart on each terminal: https://openfoamwiki.net/index.php/I...nFOAM_versions
wyldckat is offline   Reply With Quote

Reply


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
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 05:18
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 11:56


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