No video

how to link ANSYS Workbench TO MATLAB Using Journal Files ???

  Рет қаралды 13,361

Amir Hossein Dodangeh

Amir Hossein Dodangeh

Күн бұрын

here is the matlab code that was used in this video :
tic
clc; clear;
%% Changing the input parameters
Length = 25;
Height = 10;
% creating new journal file
fid = fopen('base journal.wbjn','r');
f = fread(fid,'*char')';
fclose(fid);
f = strrep(f,'Length' , num2str(Length));
f = strrep(f,'Height' , num2str(Height));
fid = fopen('finaljournal.wbjn','w');
fprintf(fid,'%s',f);
fclose(fid);
%% Calculations in ansys with input parameters
system('C:\"Program Files"\"ANSYS Inc"\v212\Framework\bin\Win64\RunWB2.exe -B -R finaljournal.wbjn');
%% saving the output parameter
Nusselt_no = xlsread('export data.csv','export data','D8');
toc

Пікірлер: 24
@louisjallier6219
@louisjallier6219 Жыл бұрын
You deserve the world
@sumanraypramanik3798
@sumanraypramanik3798 2 жыл бұрын
So i can also put a vector of numbers in length or height? And it will run for all, or do I have to do one value at a time? Great video BTW ☺️ looking to use what u showed 😀
@kimiakarimi397
@kimiakarimi397 2 жыл бұрын
Thank a lot! I was very helpful
@fordtom0
@fordtom0 Жыл бұрын
very good!!!! thanks
@rezanazeri3488
@rezanazeri3488 2 жыл бұрын
Thank you so much bro. quite helpful👌
@udaypatel8341
@udaypatel8341 2 ай бұрын
can you tell me how to use code to optimize the same structure by using genetic algorithim tool box in matlab. objective is to optimize the mass of the structure, design variables are its width and thickness, constraints are deflection and stress
@louisjallier6219
@louisjallier6219 Жыл бұрын
Thanks a lot mate
@9okku
@9okku 2 жыл бұрын
Thank you very much for the valuable information! Edit: I solved my problem and it works like a charm! I not deleting the problem in case of someone makes the same mistake :) I just forgot to open the file hence there was a missing code line : Open(FilePath="D:/Backup/2022/Design_Optimization/ANSYS/WB/CFD_Matlab_trial/CFD_Matlab_trial.wbpj") However, I had an error where it says: "CommandFailedException: Parameter of name 'P1' not found in Project In file "finaljournal.wbjn", line 5" I am using ANSYS 18.1 and Matlab R2021b but I made the changes (e.g. I changed the v212 to v181) I am confused about how to continue, could you please guide me?
@andrewp.8278
@andrewp.8278 Жыл бұрын
A small note - this line should be put in the journal
@ZihanZhu-tk9ym
@ZihanZhu-tk9ym 11 ай бұрын
I also have the same problem, did you solve the problem, can you give me some information? I would be very grateful
@burkitbayevarman5435
@burkitbayevarman5435 Жыл бұрын
is it possible to make data exchange between matlab and ansys automotically?
@davoodbarati9952
@davoodbarati9952 2 жыл бұрын
Thank you so much, this would be so helpful.
@rexwang5240
@rexwang5240 2 жыл бұрын
I found out that there was a problem with my solver, Update failed for the Solution component in Transient Thermal. Error updating cell Solution in system Transient Thermal.
@mohamedzain8628
@mohamedzain8628 2 жыл бұрын
Allah bless you, thank you very much.
@mamadtomcat7588
@mamadtomcat7588 2 жыл бұрын
Nice
@amirhusseinmontazeran6685
@amirhusseinmontazeran6685 9 ай бұрын
Thank you!
@anime-fantasiaone2421
@anime-fantasiaone2421 2 жыл бұрын
Thank you very much for the valuable information! I need help for my thesis and and I can pay if necessary how can I contact you for more questions
@K_Shawn_Webb
@K_Shawn_Webb 2 жыл бұрын
Hello sir, does this work with the latest versions of Ansys? Also will this work with student version?
@user-xi5bf1rc9l
@user-xi5bf1rc9l 2 жыл бұрын
what is the difference between the basic journal.wbjn and finaljournal .wbjn
@rexwang5240
@rexwang5240 2 жыл бұрын
Thanks very much! But when I used my own case, the software was opened and it seemed to be running, but the csv result table was not generated.Do you know the reason
@amirhosseindodangeh8736
@amirhosseindodangeh8736 2 жыл бұрын
double check your journal file that should be where your troubles and problem are ...
@hanqiyu1679
@hanqiyu1679 2 жыл бұрын
If I want to do a "for" loop on length and height so that I don't have to change the value manually, is it possible to save all the results in one output file?
@K_Shawn_Webb
@K_Shawn_Webb 2 жыл бұрын
my suggestion would be to have a secondary output file. The first one would interdace b/w matlab and ANSYS and u use matlab to create a second one that send the data to it for every iteration.
@user-gw7iy9gp3z
@user-gw7iy9gp3z 2 жыл бұрын
how?
What Software do Mechanical Engineers NEED to Know in 2024
18:15
Engineering Gone Wild
Рет қаралды 21 М.
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 20 МЛН
SPONGEBOB POWER-UPS IN BRAWL STARS!!!
08:35
Brawl Stars
Рет қаралды 21 МЛН
娜美这是在浪费食物 #路飞#海贼王
00:20
路飞与唐舞桐
Рет қаралды 4,8 МЛН
А ВЫ УМЕЕТЕ ПЛАВАТЬ?? #shorts
00:21
Паша Осадчий
Рет қаралды 1,9 МЛН
How to link ANSYS Maxwell with MATLAB?
52:06
ComProgExpert
Рет қаралды 5 М.
Recording an Ansys Fluent Journal File
15:20
Craig Hill
Рет қаралды 8 М.
Parameter optimization using ANSYS Workbench
18:58
Tips and Tricks in Research
Рет қаралды 8 М.
A Dazzling Comet is Heading Our Way! It Will Outshine Brightest Stars
15:07
The Secrets of the Universe
Рет қаралды 168 М.
How to plot graphics from ANSYS to Excel
13:46
Mechanical Relaxation
Рет қаралды 22 М.
Import excel / CSV / text file time dependent data in fluent
10:45
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 20 МЛН