Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Probe function is not available #99

Open
ST121 opened this issue Nov 24, 2022 · 11 comments
Open

Probe function is not available #99

ST121 opened this issue Nov 24, 2022 · 11 comments

Comments

@ST121
Copy link

ST121 commented Nov 24, 2022

Dear team,

I have successfully complied RapidCFD on CUDA 11.1, Ubuntu 16.04, and no error occurred.
Now, I'm trying to run a simple cavity case by RapidCFD. However, the "probes" function seems to be unavailable in RapidCFD.
Here is the function part of the controlDict.
sendpix3

When I finished calculating the first time step, I received the following lines.

sendpix2

Then, I ran this case with the same probes on OpenFOAM 2.3.0, and everything went perfectly.
Besides "probes" function, I also tried "fieldAverage" function on both RapidCFD and OpenFOAM 2.3.0, and the case could be successfully calculated with only "fieldAverage".

How can I fix this problem and use probes in RapidCFD? Any suggestions are highly appreciated!!

Thanks,
Jade

@TonkomoLLC
Copy link
Contributor

TonkomoLLC commented Nov 24, 2022

Thanks for reporting this issue.

Please try the sloshingTank test and let me know if it works... You will need to create the mesh with CPU OpenFOAM as usual. The case runs with interDyMFoam.

This test case has probes:

functions
{
    probes
    {
        type            probes;
        functionObjectLibs ("libsampling.so");
        outputControl   timeStep;
        outputInterval  1;
        probeLocations
        (
            ( 0 9.95 19.77 )
            ( 0 -9.95 19.77 )
        );
        fixedLocations  false;
        fields
        (
            p
        );
    }
}

I just confirmed that probes work with this case using CUDA 11.2.

Example probe results form the case which I just re-started...
p.txt

Thanks and best regards,

Eric

@ST121
Copy link
Author

ST121 commented Nov 26, 2022

Thank you so much for your reply.
I downloaded the sloshingTank case and I surprisingly found that I had no interDyMFoam solver. Maybe it is because I missed some errors when I was compiling the last time. Then I tried to recompile RapidCFD and I received the following lines
sendpix0

I'm still using Ubuntu16.04 and CUDA 11.1. Any ideas for this error message?
Thanks so much for your help!!

@Dcn303
Copy link

Dcn303 commented Nov 28, 2022

I have successfully complied RapidCFD on CU

hi ,
can you tell me the steps that you have followed to successfully compiled the RapidCFD

@TonkomoLLC
Copy link
Contributor

Hi,
I used installation instructions detailed in #93
Hope this helps

@TonkomoLLC
Copy link
Contributor

TonkomoLLC commented Nov 29, 2022

@ST121- I honestly do not know why you are getting those errors, especially since your RapidCFD solvers should not have compiled if the displayed occurred previously.

I have tried CUDA 11.1 with Ubuntu 20.04 but the main difference would maybe be the gcc compiler version? Not sure if this matters much.

If I were in your shoes I would do a complete reinstall following the instructions in #93 I know that takes a long time... I apologize but do not have better advice at this time.

@Dcn303
Copy link

Dcn303 commented Nov 29, 2022

Hi, I used installation instructions detailed in #93 Hope this helps

Thanks TonkomoLLC 👍👍

@ST121
Copy link
Author

ST121 commented Mar 2, 2023

@ST121- I honestly do not know why you are getting those errors, especially since your RapidCFD solvers should not have compiled if the displayed occurred previously.

I have tried CUDA 11.1 with Ubuntu 20.04 but the main difference would maybe be the gcc compiler version? Not sure if this matters much.

If I were in your shoes I would do a complete reinstall following the instructions in #93 I know that takes a long time... I apologize but do not have better advice at this time.

Hi! After this long time, I reinstalled RapidCFD on the laptop with GeForce1050Ti, CUDA8.0 and Ubuntu 16.04. Finally the codes can run with no error!
I did agree that the previous errors may caused by the gcc version (it keep warning during the compiling process)!
Thanks so much for your help!!

@TonkomoLLC
Copy link
Contributor

Great news! Thanks for the update!

@ST121
Copy link
Author

ST121 commented Mar 9, 2023

Hi, sorry for coming again!
After succeeding in compiling RapidCFD on my laptop, I tried to install it again on my PC. This time I tried with Ubuntu 20.04 and CUDA 11.1. But I still cannot find solver interDyMFoam and the probe cannot be used either.
I tried ./Allwmake for the exact interDyMFoam folder, and I got the following error message (seems to be something about dynamicFvMesh)

Screenshot from 2023-03-09 13-32-05

And I noticed that this error also occurred when I proposed this issue the first time. I am so comfused. Can you help me solve this problem. Thank you so much!

@TonkomoLLC
Copy link
Contributor

Hi,

The compilation of interDyMFoam failed because the compiler could not find libdynamicFvMesh. This means that RapidCFD-dvev/src/dynamicFvMesh failed to compile.

The next step is to figure out why dynamicFvMesh failed to compile. To do that you can go to the dynamicFvMesh directory (RapidCFD-dvev/src/dynamicFvMesh), and type wmake. I am guessing there will be some compilation error. This will give you the next clue.

In Issue #92 I noted there is a problem with dynamicFvMesh compilation for CUDA 11.5, and to fix that recommended commenting out the compilation of this library in the src/Allwmake file. However, you mentioned that you are using CUDA 11.1, which should not encounter the error with dynamicFvMesh that I documented in Issue #92.

I hope that you are able to figure out why libdynamicFvMesh.so is not compiling properly and that you can fix this problem.

@ST121
Copy link
Author

ST121 commented Apr 5, 2023

Hi!
I finally fix the problem by commenting the loop starting at line 104 in multiSolidBodyMotionFvMesh.C (as you mentioned in #92)! And rapidCFD works perfectly now! thank you so much for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants