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

[isoAdvector] Possible to edit src files in openfoam installation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 14, 2018, 08:30
Default Possible to edit src files in openfoam installation
  #1
New Member
 
Srikrishnan Balasubramanian
Join Date: Jul 2017
Location: Erlangen
Posts: 7
Rep Power: 8
srikrishnan_balasubramani is on a distinguished road
Hi Foamers,


Is it possible to edit the Openfoam-v1806/src/finiteVolume/.... any files inside this directory?


In particular, I want to change the isoAdvector definition to suit my case.



I copied all the files from isoAdvection to the user directory. Then I changed the file names to myisoAdvection (.C,.H ) and also the function names inside them. All these changed files, I have in the user defined solver directory namely myinterIsoFoam.



1. Is it right procedure to do ? Copying src files from the installation folder and changing it.



2. After compiling, I get undefined reference errors. I don't change any function definition. Just the name of functions I change. How to get rid of these errors ?


ex:
myinterIsoFoam.C.text._ZNK4Foam14myisoAdvection4 typeEv[_ZNK4Foam14myisoAdvection4typeEv]+0x3): undefined reference to `Foam::myisoAdvection::typeName'
Make/linux64GccDPInt32Opt/myinterIsoFoam.o: In function `main':
myinterIsoFoam.C.text.startup+0x2b6e): undefined reference to `Foam::myisoAdvection::myisoAdvection(Foam::Geomet ricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&)'
myinterIsoFoam.C.text.startup+0x4626): undefined reference to `Foam::myisoAdvection::myadvect()'
myinterIsoFoam.C.text.startup+0x6af1): undefined reference to `Foam::myisoAdvection::myadvect()'
myinterIsoFoam.C.text.startup+0x80d3): undefined reference to `Foam::myisoAdvection::myisoAdvection(Foam::Geomet ricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&)'
collect2: error: ld returned 1 exit status



This is what I get after compilation.



Kindly help me to solve this.


Thanks.
srikrishnan_balasubramani is offline   Reply With Quote

Old   August 15, 2018, 06:02
Default
  #2
New Member
 
Srikrishnan Balasubramanian
Join Date: Jul 2017
Location: Erlangen
Posts: 7
Rep Power: 8
srikrishnan_balasubramani is on a distinguished road
Solved.

http://www.tfd.chalmers.se/~hani/kur...ated050118.pdf
The above file from chalmers university explains it.
srikrishnan_balasubramani 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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
OpenFOAM 2.2.2 source pack installation on Xubuntu 13.10 zordiack OpenFOAM Installation 1 October 26, 2013 13:08
UDF issue MASOUD Fluent UDF and Scheme Programming 14 December 6, 2012 13:39
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46


All times are GMT -4. The time now is 16:41.