CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Adaptive Local Mesh Refinement

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 17, 2013, 04:53
Default
  #21
New Member
 
RJ HO
Join Date: Dec 2012
Posts: 21
Rep Power: 5
RJ87 is on a distinguished road
Quote:
Originally Posted by kalle View Post
Thanks for your answer! I dug a bit further to pinpoint the issue... it was rather easy to locate it, so I do not know why they did not respond. Either a nice fix is less easy to come up with, or this is actually not a bug, but rather me making studpid errors...

K
I have the exact same problem like yours. What's the problem exactly?
RJ87 is offline   Reply With Quote

Old   July 24, 2013, 01:18
Default
  #22
Member
 
Join Date: Jun 2012
Posts: 65
Rep Power: 6
conceptone is on a distinguished road
Hi Marco,
I use OF 2.1.1 so I need to modify some codes in the very fundamental library-"OpenFoam", which mentioned in the bug report. However, since we use cluster servers here, no matter how I try to modify the Make/option file, it always reads the original "OpenFoam" library, which outputs like below when compiling:

-I/usr/apps1/openfoam-2.1.1/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/usr/apps1/openfoam-2.1.1/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude

so it doesn't recognize the codes I changed. It only appears for the library "OpenFoam", not for other libraries, I guess the reason is that it's the cornerstone, and I am sure I didn't make mistakes in Make/option and Make/files. So do you have idea about this problem?
Thanks!
conceptone is offline   Reply With Quote

Old   July 24, 2013, 12:16
Default
  #23
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 727
Rep Power: 20
mturcios777 will become famous soon enough
Can you post your Make/options file? Also, what are the values of the following system variables:

$FOAM_SRC
$FOAM_LIBBIN
$FOAM_USER_LIBBIN
mturcios777 is offline   Reply With Quote

Old   July 25, 2013, 02:09
Default
  #24
Member
 
Join Date: Jun 2012
Posts: 65
Rep Power: 6
conceptone is on a distinguished road
Thanks for reply,Macro. I guess the problem is not from Make/options in the library named "OpenFoam", for I have already deleted all codes in this file, which means it shouldn't read other libraries or utilities, but I still got the message like above I attached when I compile the library named "OpenFoam". So I can expect same situation for other libraries, which means it would not read the modifies codes in like polyMeshClear.C.

So I have installed the OpenFoam on my personal laptop in Ubuntu system, in this case I guess I can get the biggest permission. However, after I use the command"src", then I reach the source libraries:/opt/OpenFoam-2.1.1/src, and found I can't modify codes there. But if I compile libraries under $WM_PROJECT_DIR, then the libraries will still read -I/opt/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude, which is the same thing as I use in the cluster server.

It seems that you use your personal computer for OpenFoam, then could you tell me how to make it read the modified "OpenFoam" library but not read the original library named "OpenFoam" for my laptop? Is it like I should change some codes in some file, then I can modify codes under /opt/OpenFoam/src (after I use command "src" I reach here)directory?
Thanks
conceptone is offline   Reply With Quote

Old   July 25, 2013, 12:15
Default
  #25
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 727
Rep Power: 20
mturcios777 will become famous soon enough
If you are going to make changes to the base OpenFOAM install (which really don't recommend), I would install either the source pack and compiler everything from scratch (in the $HOME/OpenFOAM/OpenFOAM-2.1.1 directory) or the GIT repository that always gets you the latest updates. Having OpenFOAM in the /usr or /opt directories makes effecting change to the base code messy. What were the values of the system variables I asked about?
mturcios777 is offline   Reply With Quote

Old   September 23, 2013, 05:33
Default Trouble with dieselDyMFoam in OF20x
  #26
New Member
 
Ah Cai
Join Date: Dec 2010
Location: Malaysia
Posts: 16
Rep Power: 7
ahcai007 is on a distinguished road
Quote:
Originally Posted by Abhishekd18 View Post
Hi,

I am trying to run dieselDyMFoam with adaptive local mesh refinement. I getting following error. Can anyone help?

Thanks.
-

Evolving Spray
Selected 66616 cells for refinement out of 68700.
Refined from 68700 to 535012 cells.


--> FOAM FATAL ERROR:
Not implemented

From function cloud::autoMap(const mapPolyMesh&)
in file fields/cloud/cloud.C at line 65.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64Gcc46DPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/opt/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64Gcc46DPOpt/lib/libOpenFOAM.so"
#2 Foam::mapClouds(Foam:bjectRegistry const&, Foam::mapPolyMesh const&) in "/opt/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64Gcc46DPOpt/lib/libfiniteVolume.so"
#3 Foam::fvMesh::mapFields(Foam::mapPolyMesh const&) in "/opt/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64Gcc46DPOpt/lib/libfiniteVolume.so"
#4 Foam::fvMesh::updateMesh(Foam::mapPolyMesh const&) in "/opt/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64Gcc46DPOpt/lib/libfiniteVolume.so"
#5 Foam::dynamicRefineFvMesh::refine(Foam::List<int> const&) in "/opt/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64Gcc46DPOpt/lib/libdynamicFvMesh.so"
#6 Foam::dynamicRefineFvMesh::update() in "/opt/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64Gcc46DPOpt/lib/libdynamicFvMesh.so"
#7 main in "/opt/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64Gcc46DPOpt/bin/dieselDyMFoam"
#8 __libc_start_main in "/lib64/libc.so.6"
#9 Foam::regIOobject::writeObject(Foam::IOstream::str eamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const in "/opt/OpenFOAM/OpenFOAM-2.0.1/platforms/linux64Gcc46DPOpt/bin/dieselDyMFoam"
Aborted
Quote:
Originally Posted by mturcios777 View Post
For those who follow this thread, the issue with lagrangian mapping has been solved and now works wonderfully in 2.1.x!
Hi,

I am currently having the same error as mentioned by Abhishek when running adaptive local mesh refinement for dieselDyMFoam in OF20x. According to Marco, the problem has been resolved and it works just fine in OF21x.

However, I really would like to stick to OF20x as I have ran lots of simulation cases in OF20x and would like to be consistent in the OF version I am using.

Is there a way to proceed with mesh refinement in OF20x or there is no other way except to switch versions?

Thanks.

Regards,
Ahcai
ahcai007 is offline   Reply With Quote

Old   March 31, 2015, 08:19
Default
  #27
New Member
 
MürgoHaw's Avatar
 
Haw
Join Date: Jan 2015
Location: Germany
Posts: 3
Rep Power: 3
MürgoHaw is on a distinguished road
Hi,

i tried to apply the automatic mesh refinement in SprayFoam.
For this i got much help from this Thread: http://www.openfoam.org/mantisbt/view.php?id=464

So far it seems the new solver has no errors itself.
Unfortunately i got this error in the compiling process. I think its a problem with the platform:

-lfiniteVolume -lmeshTools -lcompressibleTurbulenceModel -lcompressibleRASModels -lcompressibleLESModels -llagrangian -llagrangianIntermediate -llagrangianSpray -lspecie -lbasicThermophysicalModels -lliquidProperties -lliquidMixtureProperties -lsolidProperties -lsolidMixtureProperties -lthermophysicalFunctions -lreactionThermophysicalModels -lSLGThermo -lchemistryModel -lradiationModels -lODE -lregionModels -lsurfaceFilmModels -lsampling -ldynamicFvMesh -ltopoChangerFvMesh -ldistributionModels -lOpenFOAM -ldl -lm -o /cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/bin/dynamicSprayFoam
/usr/bin/ld: warning: libmpi.so.1, needed by /cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so, not found (try using -rpath or -rpath-link)
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Waitall'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Abort'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `ompi_mpi_double'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Get_count'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Init'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Probe'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Send'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Allreduce'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `ompi_mpi_packed'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Buffer_detach'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Bsend'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `ompi_mpi_byte'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Irecv'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Recv'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `ompi_mpi_comm_world'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Get_processor_name'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Test'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Isend'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Finalize'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `ompi_mpi_op_sum'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Buffer_attach'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Comm_size'
/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so: undefined reference to `MPI_Comm_rank'
collect2: ld returned 1 exit status
make: *** [/cax/sw/OPENFOAM/LINUX_x86_64/moa1/milano/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/bin/dynamicSprayFoam] Error 1

Can anyone help me? Thank you very much!
MürgoHaw is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Local adaptive mesh refinement with hybrid meshes holger_marschall OpenFOAM Meshing Format & General Technical 5 December 21, 2010 14:38
Adaptive Mesh Refinement and Cyclic Boundary Conditions adona058 OpenFOAM Running, Solving & CFD 6 October 23, 2009 09:17
basic of mesh refinement arya CFX 4 June 19, 2007 12:21
Mesh Refinement JY CD-adapco 7 September 19, 2002 13:37
Hints on adaptive mesh refinement Bo Jensen CD-adapco 0 July 17, 2000 08:39


All times are GMT -4. The time now is 23:05.