From 73e4295a25f469151dd14b861cf17870ecacc5dc Mon Sep 17 00:00:00 2001 From: wanqing0421 Date: Wed, 25 Dec 2024 08:38:09 +0800 Subject: [PATCH] Undo changes in bashrc and change the velocity_ to tangentVelocity_ --- cmake/bashrc | 2 +- src/MotionModel/entities/conveyorBelt/conveyorBelt.cpp | 8 ++++---- src/MotionModel/entities/conveyorBelt/conveyorBelt.hpp | 4 ++-- .../sphereGranFlow/conveyorBelt/settings/geometryDict | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cmake/bashrc b/cmake/bashrc index d9c1191b..277080d3 100644 --- a/cmake/bashrc +++ b/cmake/bashrc @@ -1,7 +1,7 @@ export pFlow_PROJECT_VERSION=v-1.0 -export pFlow_PROJECT="phasicFlow" +export pFlow_PROJECT="phasicFlow-$pFlow_PROJECT_VERSION" projectDir="$HOME/PhasicFlow" diff --git a/src/MotionModel/entities/conveyorBelt/conveyorBelt.cpp b/src/MotionModel/entities/conveyorBelt/conveyorBelt.cpp index 839d3b84..2e63a5a1 100644 --- a/src/MotionModel/entities/conveyorBelt/conveyorBelt.cpp +++ b/src/MotionModel/entities/conveyorBelt/conveyorBelt.cpp @@ -37,7 +37,7 @@ FUNCTION_H bool pFlow::conveyorBelt::read(const dictionary& dict) { - velocity_ = dict.getVal("velocity"); + tangentVelocity_ = dict.getVal("tangentVelocity"); return true; } @@ -45,10 +45,10 @@ bool pFlow::conveyorBelt::read(const dictionary& dict) FUNCTION_H bool pFlow::conveyorBelt::write(dictionary& dict) const { - if( !dict.add("velocity", velocity_) ) + if( !dict.add("tangentVelocity", tangentVelocity_) ) { fatalErrorInFunction<< - " error in writing velocity to dictionary "<< dict.globalName()<