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

[solidMechanics] Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend"

Register Blogs Community New Posts Updated Threads Search

Like Tree134Likes

Closed Thread
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2012, 13:06
Default Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend"
  #1
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Greetings to all!

This post has been artificially planted here by a moderator, as part of the effort to keep the news of the solidMechanics tooblox separated from the support questions.
Have fun!

Last edited by wyldckat; December 28, 2013 at 09:51. Reason: artificially inserted post, detailing the objective of this thread
bigphil is offline  

Old   September 12, 2012, 15:53
Default Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend"
  #2
Member
 
Sangeeta
Join Date: Jul 2012
Location: Kingston, Canada
Posts: 70
Rep Power: 14
Sargam05 is on a distinguished road
Quote:
Originally Posted by bigphil View Post
Hi Mechy,

sorry the command to get the solidMechanics branch is (this command is executed in the OpenFOAM-1.6-ext directory):
Code:
git checkout -b solidMechanics remotes/origin/feature/solidMechanics
I shall edit the post above.

Philip

Hi Philip,

I have OpenFOAM 1.7.x in machine but I have successfully installed feature branch OpenFOAM-1.6-ext and updated the solidMechanics folder. I am using following commands mentioned in Allwmake for compiling solvers

#!/bin/sh
set -X
wmake libso solidModels

After this command it seems compile but at last is showing some error (please see below)


SOURCE=fvPatchFields/fixedRotation/fixedRotationFvPatchVectorField.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I/opt/openfoam171/src/VectorN/lnInclude -I/opt/openfoam171/src/triSurface/lnInclude -I/opt/openfoam171/src/finiteArea/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/fixedRotationFvPatchVectorField.o
fvPatchFields/fixedRotation/fixedRotationFvPatchVectorField.C:33:31: error: RodriguesRotation.H: No such file or directory
fvPatchFields/fixedRotation/fixedRotationFvPatchVectorField.C: In member function ‘virtual void Foam::fixedRotationFvPatchVectorField::updateCoeff s()’:
fvPatchFields/fixedRotation/fixedRotationFvPatchVectorField.C:166: error: ‘RodriguesRotation’ was not declared in this scope
make: *** [Make/linuxGccDPOpt/fixedRotationFvPatchVectorField.o] Error 1

Do you think this error is coming because I do not have OpenFOAM1.6.x installed in my machine?

Thanks in advance.

Regards,
Sangeeta
Sargam05 is offline  

Old   September 13, 2012, 06:12
Default
  #3
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi Sangeeta,

The solidMechanics solvers and library use a number of features (such as GGI) that are only found in the OpenFOAM Extend (not the standard OpenCFD OpenFOAM). Therefore, I would recommend you install OpenFOAM-1.6-ext if you want to use solidMechanics (Note: OpenFOAM-1.6.x is released by OpenCFD and OpenFOAM-1.6-ext is realised by the Extend Project).

It would probably be possible to compile the solvers in standard OpenFOAM but you would have to exclude quite a bit of the functionality. So it is much easier to install OpenFOAM-1.6-ext.

Philip
Alisa_W likes this.
bigphil is offline  

Old   September 13, 2012, 07:38
Default
  #4
Member
 
OpenCFD
Join Date: Mar 2009
Posts: 68
Rep Power: 19
opencfd is on a distinguished road
OpenFOAM does include an implementation of arbitrary mesh interface (a.k.a generalisation grid interface 'GGI'), since version 2.1.0:
http://www.openfoam.org/version2.1.0/ami.php
Alisa_W likes this.
opencfd is offline  

Old   September 13, 2012, 11:31
Default
  #5
Member
 
Sangeeta
Join Date: Jul 2012
Location: Kingston, Canada
Posts: 70
Rep Power: 14
Sargam05 is on a distinguished road
Hi Philip,

Thanks for the reply. Do I need to first install OpenFOAM 16x for installing and compiling OpenFOAM-ext? Can I install both OpenFOAM 171 and OpenFOAM-ext in same machine?


Regards,
Sangeeta
Sargam05 is offline  

Old   September 13, 2012, 11:38
Default
  #6
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by Sargam05 View Post
Hi Philip,

Thanks for the reply. Do I need to first install OpenFOAM 16x for installing and compiling OpenFOAM-ext? Can I install both OpenFOAM 171 and OpenFOAM-ext in same machine?


Regards,
Sangeeta
Yes you can have separate installs of OpenFOAM-1.7.1 and OpenFOAM-1.6-ext on your machine (I think you should be able to find quite a bit of information on the forum about this). And no you don't need to install OpenFOAM-1.6.x before OpenFOAM-1.6-ext as they are separate.

Best regards,
Philip
bigphil is offline  

Old   September 13, 2012, 12:31
Default
  #7
Member
 
Sangeeta
Join Date: Jul 2012
Location: Kingston, Canada
Posts: 70
Rep Power: 14
Sargam05 is on a distinguished road
Quote:
Originally Posted by bigphil View Post
Yes you can have separate installs of OpenFOAM-1.7.1 and OpenFOAM-1.6-ext on your machine (I think you should be able to find quite a bit of information on the forum about this). And no you don't need to install OpenFOAM-1.6.x before OpenFOAM-1.6-ext as they are separate.

Best regards,
Philip

Hi Philip,

Thanks a lot for the reply.

Sangeeta
Sargam05 is offline  

Old   September 14, 2012, 05:12
Default
  #8
Member
 
jack
Join Date: Jul 2011
Posts: 52
Rep Power: 15
lg88 is on a distinguished road
Hello Philip
I have met the problem mechy have.
When I run
Code:
git checkout -b feature/solidMechanics remotes/origin/feature/solidMechanics
It said that I haven't install git.So I run the command:
Code:
sudo apt-get install git-core
And It installed fluently.Then I go into the folder OpenFOAM-1.6-ext and run this command again:
git checkout -b feature/solidMechanics remotes/origin/feature/solidMechanics But the same error came up.
Code:
fatal: Not a git repository (or any of the parent directories): .git
Can you tell me what should I do?The version I am using is OF-1.6-ext.

Thank you very much!
Best Regards!

lg88
lg88 is offline  

Old   September 14, 2012, 06:01
Default
  #9
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by lg88 View Post
Hello Philip
I have met the problem mechy have.
When I run
Code:
git checkout -b feature/solidMechanics remotes/origin/feature/solidMechanics
It said that I haven't install git.So I run the command:
Code:
sudo apt-get install git-core
And It installed fluently.Then I go into the folder OpenFOAM-1.6-ext and run this command again:
git checkout -b feature/solidMechanics remotes/origin/feature/solidMechanics But the same error came up.
Code:
fatal: Not a git repository (or any of the parent directories): .git
Can you tell me what should I do?The version I am using is OF-1.6-ext.

Thank you very much!
Best Regards!

lg88
Hi lg88,

first OpenFOAM-1.6-ext needs to be downloaded and installed with git:
Code:
git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext
Then navigate into the OpenFOAM-1.6-ext directory and checkout the solidMechanics branch:
Code:
cd OpenFOAM-1.6-ext
git checkout -b feature/solidMechanics remotes/origin/feature/solidMechanics
Hope it helps,
Philip
bigphil is offline  

Old   September 14, 2012, 11:22
Default
  #10
Member
 
jack
Join Date: Jul 2011
Posts: 52
Rep Power: 15
lg88 is on a distinguished road
Hello Philip
With this command:
Code:
git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext
can I install OF-1.6-ext in any version of Ubuntu?like Ubuntu 11.04,11.10 or 12.04?Because I always installed Ubuntu 10.04 first and then intsalled OF-1.6-ext.

Thank you very much!

regards!

lg88
lg88 is offline  

Old   September 14, 2012, 12:32
Default
  #11
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi lg88,

Yes it should be possible to install and compile OpenFOAM-1-6-ext on any Ubuntu, assuming that all the necessary dependencies are installed.

You should be able to find lots of information on the forum for installing any version of OpenFOAM on most linux distributions.

Philip
bigphil is offline  

Old   September 17, 2012, 22:08
Default icoFSIElasticNonLinULSolidFoam
  #12
Member
 
jack
Join Date: Jul 2011
Posts: 52
Rep Power: 15
lg88 is on a distinguished road
Hi Philip
I have found that there is a problem of the tutorials of icoFSIElasticNonLinULSolidFoam.
There are not polyMesh.tgz (both fluid or solid).I can see the folder ployMesh but only with a file:boundary inside.
I am bot sure whether it is my problem during download.

regards!

lg88
lg88 is offline  

Old   September 18, 2012, 05:48
Default
  #13
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by lg88 View Post
Hi Philip
I have found that there is a problem of the tutorials of icoFSIElasticNonLinULSolidFoam.
There are not polyMesh.tgz (both fluid or solid).I can see the folder ployMesh but only with a file:boundary inside.
I am bot sure whether it is my problem during download.
Hi lg88,

You are right, thanks for the fix.

The problem was that ".tgz" files are excluded from the git repo so they were not added. I have fixed it by extracting the meshes to the correct place.

You should be able to get the changes using:
Code:
git pull
The code can be browsed here.

If there any other mistakes/bugs, let me know!

Best regards,
Philip
bigphil is offline  

Old   September 18, 2012, 09:51
Default
  #14
Senior Member
 
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17
markusrehm is on a distinguished road
Hi Philip,

thanks for the contribution! I have tested the case hotCylinder and elasticThermalSolidFoam and compared results to that from solidDisplacementFoam. Your solver gives better results.

Is that plausible?

Can you explain whats the reason for that?

See the plot attached.


BTW: I found that in some solvers the include command in Make/options for rheologyModel.H was wrong. I had to change it from
-I../../solidModels/lnInclude
to
-I../solidModels/lnInclude

Regards, Markus.
Attached Files
File Type: pdf hotCylinder.pdf (6.2 KB, 244 views)
markusrehm is offline  

Old   September 18, 2012, 10:07
Default
  #15
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi Markus,

Quote:
Originally Posted by markusrehm View Post
thanks for the contribution! I have tested the case hotCylinder and elasticThermalSolidFoam and compared results to that from solidDisplacementFoam. Your solver gives better results.

Is that plausible?

Can you explain whats the reason for that?
Hmnnn that's interesting, since both solvers are essentially using the same method I would expect them to produce the same results, especially considering the mesh is orthogonal in this case (elasticThermalSolidFoam will be better on non-orthogonal grids as it has boundary non-orthogonal corrections).

If I had to guess, I would say that maybe something is slightly different between the two cases (BCs, properties, fvSchemes, fvSolutions, …).

Quote:
Originally Posted by markusrehm View Post
BTW: I found that in some solvers the include command in Make/options for rheologyModel.H was wrong. I had to change it from
-I../../solidModels/lnInclude
to
-I../solidModels/lnInclude
Thanks, this is the remnants of the old way the code was organised. Which solvers so I can fix it?

Best regards,
Philip
bigphil is offline  

Old   September 18, 2012, 11:21
Default
  #16
Member
 
jack
Join Date: Jul 2011
Posts: 52
Rep Power: 15
lg88 is on a distinguished road
Hi Philip
I am sorry that I can not get any changes with the command:
Code:
git pull
There is not .gz file in the polyMesh folder still.
And with the link:http://openfoam-extend.git.sourcefor...solidMechanics
I can see other meshes information ,but I can not download them.Can you tell how to download the files there?

Thank you very much!

regards!

lg88
lg88 is offline  

Old   September 18, 2012, 11:26
Default
  #17
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by lg88 View Post
Hi Philip
I am sorry that I can not get any changes with the command:
Code:
git pull
There is not .gz file in the polyMesh folder still.
And with the link:http://openfoam-extend.git.sourcefor...solidMechanics
I can see other meshes information ,but I can not download them.Can you tell how to download the files there?
Hi lg88,

The ".tgz" files have been removed altogether and instead the mesh files (points, faces, etc.) are located where they are meant to be in constant/polyMesh (you do not need to run blockMesh or any other mesh command).

So if you checkMesh the fluid or solid case you will see that the mesh is there. Alternatively open the case in ParaView to see the mesh.

Philip
bigphil is offline  

Old   September 18, 2012, 12:05
Default
  #18
Member
 
jack
Join Date: Jul 2011
Posts: 52
Rep Power: 15
lg88 is on a distinguished road
Hi Philip
I deleted the whole folder solidMechanics careless.So I tried this command again:
Code:
git checkout -b feature/solidMechanics remotes/origin/feature/solidMechanics
but it said:
Code:
fatal: A branch named 'feature/solidMechanics' already exists.
How can I fix the solidMechanics ?
regards!

lg88
lg88 is offline  

Old   September 18, 2012, 12:22
Default
  #19
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi lg88,

Use this command:
Code:
cd $WM_PROJECT_DIR
git checkout feature/solidMechanics applications/solvers/solidMechanics
This will return the applications/solvers/solidMechanics directory to what it is like in the last commit of the branch feature/solidMechanics.

Philip
bigphil is offline  

Old   September 19, 2012, 11:58
Default
  #20
Senior Member
 
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17
markusrehm is on a distinguished road
Hi Philip,

thank you for the explanation. Indeed I found a mistake in the setup.

Markus

Quote:
Originally Posted by bigphil View Post
Hi Markus,



Hmnnn that's interesting, since both solvers are essentially using the same method I would expect them to produce the same results, especially considering the mesh is orthogonal in this case (elasticThermalSolidFoam will be better on non-orthogonal grids as it has boundary non-orthogonal corrections).

If I had to guess, I would say that maybe something is slightly different between the two cases (BCs, properties, fvSchemes, fvSolutions, …).


Thanks, this is the remnants of the old way the code was organised. Which solvers so I can fix it?

Best regards,
Philip
markusrehm is offline  

Closed Thread


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
GPU Linear Solvers for OpenFOAM gocarts OpenFOAM Announcements from Other Sources 37 August 17, 2022 15:22
[Virtualization] OpenFOAM oriented tutorial on using VMware Player - support thread wyldckat OpenFOAM Installation 2 July 11, 2012 17:01
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 07:55
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 07:25
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 14:50


All times are GMT -4. The time now is 00:27.