{"id":24296692,"url":"https://github.com/sr-tamim/entropy-calculator","last_synced_at":"2025-09-25T22:31:45.107Z","repository":{"id":226287366,"uuid":"768277161","full_name":"sr-tamim/entropy-calculator","owner":"sr-tamim","description":"Entropy and heat calculation in C++","archived":false,"fork":false,"pushed_at":"2024-05-31T13:59:51.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-31T15:19:20.166Z","etag":null,"topics":["cpp","cpp-programming","entropy","thermodynamics"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sr-tamim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-06T19:42:13.000Z","updated_at":"2024-05-31T13:59:55.000Z","dependencies_parsed_at":"2024-03-31T05:29:25.651Z","dependency_job_id":"3ab441cf-e882-4cf2-aa8c-307d41680596","html_url":"https://github.com/sr-tamim/entropy-calculator","commit_stats":null,"previous_names":["sr-tamim/entropy-calculator-"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-tamim%2Fentropy-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-tamim%2Fentropy-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-tamim%2Fentropy-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr-tamim%2Fentropy-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sr-tamim","download_url":"https://codeload.github.com/sr-tamim/entropy-calculator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234260517,"owners_count":18804402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","cpp-programming","entropy","thermodynamics"],"created_at":"2025-01-16T19:41:31.914Z","updated_at":"2025-09-25T22:31:44.841Z","avatar_url":"https://github.com/sr-tamim.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Entropy Calculator\n\nThis is a C++ project that calculates the entropy change of different elements in specified temparature difference.\n\n## Project Structure\n\n- `main.cpp`: The entry point of the application.\n- `elements/`: This directory contains the definition of different elements.\n- `headers/`: This directory contains the header files for the project.\n- `bin/`: This directory contains the compiled binaries.\n- `obj/`: This directory contains the object files generated during compilation.\n\n## How to Build\n\n### Code::Blocks\n\n1. Open the `entropy-calculator.cbp` file in Code::Blocks.\n2. Click on the \"Build\" button or select \"Build\" from the \"Build\" menu.\n\n#### How to Run\n\nAfter building the project, you can run the program by clicking on the \"Run\" button or selecting \"Run\" from the \"Build\" menu in Code::Blocks.\n\n### Visual Studio Code (Linux)\n\n1. Open the project in Visual Studio Code.\n2. Press `F5` to build the project.\n3. It will create a `task.json` file in the `.vscode` directory.\n4. Configure the `task.json` file to build the project like this one,\n\n```cpp\n{\n    \"tasks\": [\n        {\n            \"type\": \"cppbuild\",\n            \"label\": \"C/C++: g++ build active file\",\n            \"command\": \"/usr/bin/g++\",\n            \"args\": [\n                \"-fdiagnostics-color=always\",\n                \"-g\",\n                \"${file}\",\n                \"-o\",\n                \"${fileDirname}/${fileBasenameNoExtension}\"\n            ],\n            \"options\": {\n                \"cwd\": \"${fileDirname}\"\n            },\n            \"problemMatcher\": [\n                \"$gcc\"\n            ],\n            \"group\": {\n                \"kind\": \"build\",\n                \"isDefault\": true\n            },\n            \"detail\": \"Task generated by Debugger.\"\n        }\n    ],\n    \"version\": \"2.0.0\"\n}\n```\n\nAnd finally press `F5` again to build and run the project.\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n### How to add a new element\n\n1. Create a new file in the `elements/` directory with the name of the element (e.g. `water.h` for water element)\n2. Define the element in the file. Declare a class with the name of the element which inherits from the `baseElement` class.\n3. Write constructor and set the values of the properties of the element.\n\n```cpp\n// Example: water.h\n#ifndef WATER_HPP_INCLUDED\n#define WATER_HPP_INCLUDED\n#include \"../headers/baseElement.h\"\n\nclass water : public baseElement\n{\npublic:\n    water()\n    {\n        setElementName(\"Water\");\n        setSpecificHeatLiquid(4184);\n        setSpecificHeatSolid(2093);\n        setSpecificHeatGas(2010);\n        setLatentHeatOfFusion(334000);\n        setLatentHeatOfVaporization(2260000);\n        setMeltingPoint(273);\n        setBoilingPoint(373);\n    }\n};\n#endif // WATER_HPP_INCLUDED\n```\n\n4. Include the header file in the `allElements.cpp` file located in the `headers/` directory.\n\n```cpp\n// include new element's header file\n#include \"../elements/water.h\"\n\n// inside getElements() function, add the new element\n// push the new element to the elements vector\nelements.push_back(new water());\n```\n\n## Issues\n\nIf you find any issues with the project, please open an issue in the repository. [Click here to open an issue](https://github.com/sr-tamim/entropy-calculator/issues)\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n## Author\n\n[SR Tamim](https://sr-tamim.vercel.app)\n\n[![sr-tamim's Profilator](https://profilator.deno.dev/sr-tamim?v=1.0.0.alpha.4)](https://github.com/sr-tamim)\n\n## Contributors\n\n[![SharafatKarim's Profilator](https://profilator.deno.dev/SharafatKarim?v=1.0.0.alpha.4)](https://github.com/SharafatKarim)\n[![NAYEMA26's Profilator](https://profilator.deno.dev/NAYEMA26?v=1.0.0.alpha.4)](https://github.com/NAYEMA26)\n[![ahmubashshir's Profilator](https://profilator.deno.dev/ahmubashshir?v=1.0.0.alpha.4)](https://github.com/ahmubashshir)\n[![titan000001's Profilator](https://profilator.deno.dev/titan000001?v=1.0.0.alpha.4)](https://github.com/titan000001)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr-tamim%2Fentropy-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsr-tamim%2Fentropy-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr-tamim%2Fentropy-calculator/lists"}