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

Customized fvOptions-class for momentum source: no rule to make target

Register Blogs Community New Posts Updated Threads Search

Rate this Entry

Customized fvOptions-class for momentum source: no rule to make target

Posted November 10, 2016 at 13:00 by kindle
Updated February 23, 2017 at 04:06 by kindle

Another one

Quote:
Originally Posted by potentialFoam View Post
Dear Foamers,

I would like to create my own fvOptions-class to introduce a momentum source term. (Unfortunately, none of the existing classes help me.)

Approach:
I copied the 'actuationDiskSource'-folder,
I renamed the files and names inside from 'actuationDisk...' to 'newSource...',
I added the 'newSource.C'-file in '$FOAM_SRC/fvOptions/Make/files',
then I tried to compile it with 'wmake' and 'wmake libso'.

Result:
All files which exist for e.g. 'actuationDiskSource' are created for 'newSource' too, like in 'platforms/linux.../...'.

BUT:
It doesn't work.
-1.) Compiling message:
Code:
...
no rule to make target ».../OpenFOAM-3.0.0/platforms/linux64GccDPInt32Opt/src/fvOptions/new.dep« ...
required from ».../OpenFOAM-3.0.0/platforms/linux64GccDPInt32Opt/src/fvOptions/new.o«
...
(loosely translated from german message)

Why?

-2.) Running simpleFoam with a 'fvOptions'-file (adapted from 'actuationDiskSource') returns an error, that the type is not known:

Code:
--> FOAM FATAL ERROR: 
Unknown Model type newSource
Why...?

Does anyone has an idea? That would be very cool!!! =)
Posted in programming
Views 963 Comments 0 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 0

Comments

 

All times are GMT -4. The time now is 03:50.