Kitware / HPCCloud

A Cloud/Web-Based Simulation Environment
https://kitware.github.io/HPCCloud/
Apache License 2.0
50 stars 23 forks source link

Modify simulation files for OpenFoam #632

Closed dealenx closed 4 years ago

dealenx commented 4 years ago

Hello, how can I modify files run.sh and openfoam_run , which preparing for OpenFoam simulation?

jourdain commented 4 years ago

I'm guessing that you are talking about that file?

dealenx commented 4 years ago

Yes, that's it, thanks!

And one more question.

I changed comands in @cumulus.taskflow.task for openfoam_run, for example, just i had added a line for creating a .txt file.

But after starting a simulation, I expected to see:

chmod +x $PWD/run.sh
touch test.txt
xhost +local:of_v1612_plus
docker start of_v1612_plus
docker exec -t of_v1612_plus $PWD/run.sh $PWD

but i had seen output of openfoam_run:

chmod +x $PWD/run.sh
xhost +local:of_v1612_plus
docker start of_v1612_plus
docker exec -t of_v1612_plus $PWD/run.sh $PWD

I don't know, the commands for the file openfoam_run are in another place or I did't build the server correctly?

jourdain commented 4 years ago

I'm guessing the issue might be in the build process especially since we are missing documentation and it is not as trivial as we hope it to be. (But we are working on improving it. ;-)

Can you provide some background on what you do build/deploy your code base?

dealenx commented 4 years ago

I build hpccloud with modified files for running OpenFoam simulations on university computing cluster.

jourdain commented 4 years ago

Are you using the docker infrastructure? Or do you build and deploy each piece yourself?

dealenx commented 4 years ago

I am using docker infrastructure from a rep hpccloud-services.

I changed lines: /docker/girder/Dockerfile and /docker/celery/Dockerfile

Changes from https://github.com/Kitware/HPCCloud.git to https://github.com/dealenx/HPCCloud.git

jourdain commented 4 years ago

Did you clear your docker cache when you rebuilt the images? @patrickoleary should know better.

dealenx commented 4 years ago

I did run command sudo docker-compose build --no-cache and i had watching for logs, i had seen that cloning comes from https://github.com/dealenx/HPCCloud.git , but after the openfoam simulation output of openfoam_run was not changed.

I did build yesterday, but I need to double-check today, there is a possibility that I can make a mistake when i using docker-compose.

dealenx commented 4 years ago

I learned more about Docker, i compiled and restarted using command:

docker-compose up -d --build girder