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

Converge UDF building

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2024, 02:49
Default Converge UDF building
  #1
New Member
 
mohamed salah
Join Date: Jan 2024
Posts: 6
Rep Power: 2
salahCFD is on a distinguished road
any one can help me please with the method how to build a converge cfd UDF on windows using visual studio 2022, i have the source code but i couldn't build the dll file.
i need the steps from the base please
salahCFD is offline   Reply With Quote

Old   February 7, 2024, 08:50
Default
  #2
Senior Member
 
ksrivast's Avatar
 
Kislaya Srivastava
Join Date: Sep 2017
Location: Convergent Science, Northville MI
Posts: 165
Rep Power: 8
ksrivast is on a distinguished road
Hello Mohamed,

Please refer to our CONVERGE 3.1 UDF Manual, which is available on our Downloads page. It contains step-by-step instructions on how to install, build and execute UDFs.

Sincerely,
__________________
Kislaya Srivastava
Principal Research Engineer | Applications
CONVERGECFD
ksrivast is offline   Reply With Quote

Old   February 7, 2024, 09:49
Default
  #3
New Member
 
mohamed salah
Join Date: Jan 2024
Posts: 6
Rep Power: 2
salahCFD is on a distinguished road
Quote:
Originally Posted by ksrivast View Post
Hello Mohamed,

Please refer to our CONVERGE 3.1 UDF Manual, which is available on our Downloads page. It contains step-by-step instructions on how to install, build and execute UDFs.

Sincerely,
i followed all the steps in the manual.
the problem is within visual studio when i compile, i got this message :

Generating Loader: converge_udf_load.c
[2/3] Building C object CMakeFiles\converge_udf.dir\converge_udf_load.c.ob j
C:
\New folder\out\build\x64-Debug\converge_udf_load.c(18): warning C4003: not enough arguments for function-like macro invocation 'BOOST_PP_SEQ_SIZE_I'
[3/3] Linking C shared library converge_udf.dll
salahCFD is offline   Reply With Quote

Old   February 9, 2024, 18:20
Default
  #4
Senior Member
 
ksrivast's Avatar
 
Kislaya Srivastava
Join Date: Sep 2017
Location: Convergent Science, Northville MI
Posts: 165
Rep Power: 8
ksrivast is on a distinguished road
Hello Mohamed,

That warning is fine. What error message is being displayed when you compile your UDFs? Does it state " Build incomplete " at the end of the process? Please post your entire build log.

Sincerely,
__________________
Kislaya Srivastava
Principal Research Engineer | Applications
CONVERGECFD
ksrivast is offline   Reply With Quote

Old   February 10, 2024, 06:38
Default
  #5
New Member
 
mohamed salah
Join Date: Jan 2024
Posts: 6
Rep Power: 2
salahCFD is on a distinguished road
Quote:
Originally Posted by ksrivast View Post
Hello Mohamed,

That warning is fine. What error message is being displayed when you compile your UDFs? Does it state " Build incomplete " at the end of the process? Please post your entire build log.

Sincerely,
when i load my directory in Visual Studio 2022 i got this error : (Severity Code Description Project File Line Suppression State Details
Error CMake Error at C:/Program Files/CONVERGE Explore/CONVERGE/3.1.9/share/cmake/CONVERGE_BUILD:294 (add_library):
No SOURCES given to target: converge_udf_user CONVERGE UDF Development Package C:/Program Files/CONVERGE Explore/CONVERGE/3.1.9/share/cmake/CONVERGE_BUILD 294
)
and when I ignore it and i try to build the project i got this : Warning: the MSVC toolset version has not been determined for one or more projects. To collect data as ordinary user with Visual Studio the MSVC toolset version '14.46.52625' is required. To workaround any issue may occur running Visual Studio as Administrator is recommended.
========== C++ Build Insights ==========
Starting collection…
Collecting data…
Finishing data collection…
Preparing data for analysis…
Warning: The trace collected during this session is empty. The trace contains data only if the MSVC toolset is being used, and only if code compilation occurred and was not skipped by up-to-date checks. A rebuild may be needed to generate data for the trace.
========== C++ Build Insights: failure occurred during data collection ==========
salahCFD is offline   Reply With Quote

Old   February 12, 2024, 12:59
Default
  #6
Senior Member
 
ksrivast's Avatar
 
Kislaya Srivastava
Join Date: Sep 2017
Location: Convergent Science, Northville MI
Posts: 165
Rep Power: 8
ksrivast is on a distinguished road
Hello Mohamed,

Please note that the error message : No SOURCES given to target : indicates that there is no "src" directory, with available .c UDFs you wish to compile, found in the folder with the CMakeLists.txt file.

Sincerely,
__________________
Kislaya Srivastava
Principal Research Engineer | Applications
CONVERGECFD
ksrivast 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
UDF source term issue regarding 'Invalid Module Name' BuckBadger CONVERGE 3 January 26, 2024 13:06
[OpenFOAM.org] Instructions to install OpenFOAM-2.4.x on CentOS-6.10 redbullah OpenFOAM Installation 9 September 7, 2019 17:18
Error, could not find CONVERGE UDF LIBRARY, libconverge_udf.so kri321shna CONVERGE 11 December 12, 2016 15:27
Source Term UDF VS Porous Media Model pchoopanya Fluent UDF and Scheme Programming 1 August 28, 2013 06:12
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


All times are GMT -4. The time now is 02:59.