|
[Sponsors] |
set boundary condirions by using java macro |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 7, 2015, 10:07 |
set boundary condirions by using java macro
|
#1 |
New Member
marwan
Join Date: Apr 2015
Location: FL/US
Posts: 13
Rep Power: 11 |
hi guys. My advisor asked me to learn how to use java macro in Star CCM+.to be honest I have no clue and am running out of time. Can you guys give me some advises about that. like how to learn it and what is the best and fast way to do it.
|
|
April 8, 2015, 02:36 |
|
#2 |
Member
kris
Join Date: May 2014
Posts: 73
Rep Power: 11 |
the best way to learn is to record and edit it.
start recording a java, do what you want to do normally, and then edit the java. This is the easiest way to create and learn java macros. |
|
April 8, 2015, 08:38 |
|
#3 | |
New Member
marwan
Join Date: Apr 2015
Location: FL/US
Posts: 13
Rep Power: 11 |
Quote:
thanks for your reply.but as i said i have no idea about that. i mean i know how to record but editing is not easy for me. what i am trying to do is using an equation to control the boundary condition in the inlet and the outle.can u give me an idea how to do it? |
||
April 9, 2015, 02:43 |
|
#4 |
Member
kris
Join Date: May 2014
Posts: 73
Rep Power: 11 |
jus a thought.... if you are trying to use an equation to control the boundary condition, then may be you can use field functions instead of a macro.
if you have to use java for some reason, use netbeans or something similar to edit your java codes... it makes life a bit easier. netbeans is a free software you can download and go through this thread for more details. |
|
April 9, 2015, 08:03 |
|
#5 |
Senior Member
Gajendra Gulgulia
Join Date: Apr 2013
Location: Munich
Posts: 144
Rep Power: 13 |
hey marwan
Install notepad ++ and net beans. Firstly open any of the recorded macros in notepad ++. Notepad ++ is interactive in terms of usage and understanding various lines of codes. However you will not be able to debug the code in case of any errors in notepad++ , nor that notepad ++ will be able to detect any errors. To debug, you should have a fair idea of java syntax too. To learn java, you should enroll in one of the courses offered by edx (www.edx.org) Here you will learn how to code in java which you will find helpful when coding for STAR CCM+ routines . One of these course has started on 6th april and another one is due to start on 28th april. The basic fact you should keep in mind while working with STAR CCM+ java is that STAR CCM+ has its own libraries for java which will not be identified by a standard editor such as Net Beans or Eclipse. To get the java editor recognize the star ccm+ recorded macro, you should import the ccm+ libraries in the editor. You will find more info about this on the ccm+ manual. You will pick up speed once you understand Java in general and star ccm+ java syntax in specific. ccm+ manual has some very good examples on how to create user input panels when running java codes, which is very useful to feed in the data to ccm+ while doing pre-processing and post-processing. Hope this was helpful |
|
April 9, 2015, 10:43 |
|
#6 |
New Member
marwan
Join Date: Apr 2015
Location: FL/US
Posts: 13
Rep Power: 11 |
thanks ggulgulia
.I really appreciate these information. I am gonna try to enroll in one of these courses u mentioned.Also,if u meant by manual the tutorials on cd-adapco website , I tried to understand them but i couldn't due to lack of info in Java in general |
|
April 9, 2015, 10:45 |
|
#7 |
New Member
marwan
Join Date: Apr 2015
Location: FL/US
Posts: 13
Rep Power: 11 |
kguntur , thanks again. I thought the same thing in the beginning but my advisor told me to learn Java so I can use equations to control the boundary conditions. and as I said I am not that experience with these things so I am just trying to do what he asked me.
|
|
April 9, 2015, 12:53 |
|
#8 |
Senior Member
Gajendra Gulgulia
Join Date: Apr 2013
Location: Munich
Posts: 144
Rep Power: 13 |
Hi Marwan
by the manual i meant the STAR CCM+ help manual or the documentation. I found the code for generating the command window there. You will get it if you go through the manual carefully |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Difficulty In Setting Boundary Conditions | Moinul Haque | CFX | 4 | November 25, 2014 17:30 |
Setting rotating frame of referece. | RPFigueiredo | CFX | 3 | October 28, 2014 04:59 |
[Gmsh] Import problem | ARC | OpenFOAM Meshing & Mesh Conversion | 0 | February 27, 2010 10:56 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 13:43 |
Set nonuniform boundary values | nikwin | OpenFOAM Running, Solving & CFD | 1 | November 30, 2008 07:12 |