CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Running solver on QT using qProcess()

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2018, 09:27
Default Running solver on QT using qProcess()
  #1
New Member
 
JSousa
Join Date: Jun 2018
Posts: 2
Rep Power: 0
JVRS is on a distinguished road
Hello,
First of all i must say i'm newbie to qt and openfoam. I'm developing an application that runs OpenFoam (a c++ library) behind. I'm trying to call a solver from that library by pressing a pushButton and using qprocess as follows:
//...............................................//
void MainWindow:n_pB_run_clicked()
{
QProcess myProcess;
myProcess.start("icoFoam -case /home/jvrs/ProjetosQT/Aplicação_Beta/SimulationData/NewCases/123");
myProcess.waitForFinished();
}
//.................................................. .......//
If i type the entire command "icoFoam -case /home/jvrs/ProjetosQT/Aplicação_Beta/SimulationData/NewCases/123" in the command line it runs perfectly.
If i run it on qt through qprocess it doens't do anything.
I would appreciate if anyone could help me with this problem.
Regards!
JVRS is offline   Reply With Quote

Reply

Tags
openfoam, qprocess, run, run-case, solver

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Error running compiled solver of fireFoam and conjugate heat transfer solver charles4allme OpenFOAM Running, Solving & CFD 2 April 26, 2019 06:58
Error while running new solver phaseChangeHeatDyMFoam sabrinacarson OpenFOAM Running, Solving & CFD 4 July 10, 2018 07:28
New solver not running in loop. silviliril OpenFOAM Running, Solving & CFD 2 May 21, 2018 08:55
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52
Error Message when running solver Jiang CFX 4 August 12, 2013 13:37


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